Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
295 lines (295 loc) · 13.1 KB
/
Copy pathpackage.json
File metadata and controls
295 lines (295 loc) · 13.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
{
"name": "prusti-assistant",
"displayName": "Prusti Assistant",
"description": "Verify Rust programs with the Prusti verifier.",
"version": "0.13.1",
"publisher": "viper-admin",
"repository": {
"type": "git",
"url": "https://github.com/prusti/prusti-assistant.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/prusti/prusti-assistant/issues"
},
"homepage": "https://github.com/prusti/prusti-assistant",
"main": "./out/extension",
"engines": {
"vscode": "^1.63.0",
"node": ">=20.0.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"rust",
"verification",
"prusti",
"viper"
],
"activationEvents": [
"onLanguage:rust"
],
"contributes": {
"snippets": [
{
"language": "rust",
"path": "./snippets/specs.json"
}
],
"commands": [
{
"command": "prusti-assistant.update",
"title": "update verifier",
"category": "Prusti"
},
{
"command": "prusti-assistant.show-version",
"title": "show version",
"category": "Prusti"
},
{
"command": "prusti-assistant.verify",
"title": "verify the current crate or file",
"category": "Prusti"
},
{
"command": "prusti-assistant.verify-selective",
"title": "verify the specified method",
"category": "Prusti",
"arguments": [
{
"name": "method",
"description": "The method to verify",
"type": "string",
"default": ""
}
]
},
{
"command": "prusti-assistant.getinfo",
"title": "get information for current crate or file without verification",
"category": "Prusti"
},
{
"command": "prusti-assistant.query-method-signature",
"title": "Query the signature of a method to create external specification",
"category": "Prusti",
"arguments": [
{
"name": "defpath",
"type": "string",
"default": ""
}
]
},
{
"command": "prusti-assistant.restart-server",
"title": "restart Prusti server",
"category": "Prusti"
},
{
"command": "prusti-assistant.clear-diagnostics",
"title": "clear diagnostics",
"category": "Prusti"
}
],
"configuration": {
"title": "Prusti Assistant",
"properties": {
"prusti-assistant.checkForUpdates": {
"type": "boolean",
"default": true,
"description": "Specifies if Prusti should check for updates at startup."
},
"prusti-assistant.localPrustiPath": {
"type": "string",
"default": "",
"description": "Specifies the path to the local Prusti installation (has no effect if prustiVersion is not set to Local)."
},
"prusti-assistant.verifyOnSave": {
"type": "boolean",
"default": false,
"description": "Specifies if programs should be verified on save."
},
"prusti-assistant.verifyOnOpen": {
"type": "boolean",
"default": false,
"description": "Specifies if programs should be verified when opened."
},
"prusti-assistant.reportErrorsOnly": {
"type": "boolean",
"default": false,
"description": "Specifies if only error messages should be reported, hiding compiler's warnings."
},
"prusti-assistant.javaHome": {
"type": "string",
"default": "",
"description": "Specifies the path of the Java home folder (leave empty to auto-detect)."
},
"prusti-assistant.serverAddress": {
"type": "string",
"default": "",
"description": "Specifies the address of a Prusti server to use for verification. If not set, the extension will start up and manage its own server."
},
"prusti-assistant.extraPrustiEnv": {
"type": "object",
"default": {
"RUST_BACKTRACE": "true",
"PRUSTI_LOG": "info"
},
"additionalProperties": {
"type": "string"
},
"description": "Specifies additional environment variables to be passed to all Prusti runs. Remember to restart the Prusti Server after modifying this setting."
},
"prusti-assistant.extraPrustiRustcArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"--edition=2018"
],
"description": "Specifies additional arguments to be passed to Prusti-Rustc. Used when verifying a Rust file that is not part of a crate."
},
"prusti-assistant.extraCargoPrustiArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Specifies additional arguments to be passed to Cargo-Prusti. Used when verifying a crate."
},
"prusti-assistant.extraPrustiServerArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Specifies additional arguments to be passed to the Prusti Server. Remember to restart the Prusti Server after modifying this setting."
},
"prusti-assistant.contractsAsDefinitions": {
"type": "boolean",
"default": false,
"description": "If enabled you can use 'goto definition' to view contracts of function calls."
},
"prusti-assistant.reportViperMessages": {
"type": "boolean",
"default": false,
"description": "If enabled more information about quantifiers is available. This feature has to be enabled also server-side (done by this extension)."
},
"prusti-assistant.reportBlockMessages": {
"type": "boolean",
"default": false,
"markdownDescription": "If viper messages and this option are enabled more small-grained verification. This feature has to be enabled also server-side (done by this extension). This requires `#prusti-assistant.reportViperMessages#` to be set too."
},
"prusti-assistant.blockUpdateInterval": {
"type": "number",
"default": 200,
"description": "If block data is reported, this setting regulates how frequently the UI is updated. If it acts unstably or flickers, increasing this number might help."
},
"prusti-assistant.forceBlockUpdateInterval": {
"type": "number",
"default": 1000,
"markdownDescription": "When blocks hang, the currently displayed state may be out of date. This can happen, when no new messages arrive after reaching a hanging block (i.e. no other paths are active anymore) and the hanging block message arrived between `#prusti-assistant.blockUpdateInterval#`. This setting regulates forced updates after the specified amount of ms."
},
"prusti-assistant.z3QiProfileFreq": {
"type": "number",
"default": 100,
"description": "The frequency in which Z3 should report quantifier instantiations. The lower this value, the slower Z3 becomes. Used to display quantifier information. Only considered when reportViperMessages is set."
},
"prusti-assistant.extraSiliconArgs": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "Specifies additional environment variables to be passed to all Silicon runs. Remember to restart the Prusti Server after modifying this setting. Do not include `--numberOfErrorsToReport`, because Prusti always sets it and Silicon rejects repeated options; set `PRUSTI_NUM_ERRORS_PER_FUNCTION` in `#prusti-assistant.extraPrustiEnv#` instead. If `#prusti-assistant.generateBlockMessages#` is set, `PRUSTI_NUM_ERRORS_PER_FUNCTION` defaults to `0`. May be overruled by `#prusti-assistant.extraPrustiEnv#`. A list of option can be found in the [Silicon wiki](https://github.com/viperproject/silicon/wiki/Command-Line-Options)."
},
"prusti-assistant.prustiVersion": {
"type": "string",
"default": "LatestDev",
"enum": [
"Latest",
"LatestDev",
"Tag",
"Local"
],
"enumDescriptions": [
"The latest release of Prusti.",
"The latest development build of Prusti, with frequent updates that might be unstable or have other issues.",
"A fixed version of Prusti, specified via prustiTag.",
"A local build of Prusti, specified via localPrustiPath."
],
"description": "Specifies from which version of Prusti should be used."
},
"prusti-assistant.prustiTag": {
"type": "string",
"default": "",
"description": "Specifies the GitHub tag of the Prusti release to be used. Visit https://github.com/prusti/prusti/releases to see all the available tags. This setting is only used if prustiVersion is set to Tag."
}
}
}
},
"scripts": {
"webpack-production": "webpack --mode production",
"webpack-development": "webpack --mode development",
"tsc": "tsc",
"vscode:prepublish": "npm-run-all --sequential clean webpack-production",
"compile": "npm-run-all --sequential clean webpack-development",
"lint": "eslint -c .eslintrc --ext .ts ./src",
"test-compile": "npm-run-all --sequential clean tsc",
"pretest": "npm run test-compile",
"test": "node ./out/test/runTest.js",
"report-coverage": "nyc report --reporter=html",
"clean": "rimraf out",
"package": "vsce package --no-dependencies"
},
"devDependencies": {
"@types/chai": "^4.3.11",
"@types/fs-extra": "^11.0.4",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.2",
"@types/semver": "^7.7.1",
"@types/tmp": "^0.2.6",
"@types/vscode": "^1.60.0",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@vscode/test-electron": "^2.5.2",
"chai": "^4.4.1",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react": "^7.34.1",
"glob": "^10.3.12",
"mocha": "^10.4.0",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"rimraf": "^5.0.5",
"ts-loader": "^9.5.1",
"typescript": "^5.4.3",
"@vscode/vsce": "^3.6.2",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"find-java-home": "^2.0.0",
"fs-extra": "^11.2.0",
"tmp": "^0.2.3",
"tree-kill": "^1.2.2",
"vs-verification-toolbox": "git+https://github.com/viperproject/vs-verification-toolbox.git"
},
"overrides": {
"path-scurry": {
"lru-cache": "^9.1.2"
}
},
"__metadata": {
"id": "03644baf-8510-4e01-9bc8-ef0269607dba",
"publisherDisplayName": "Chair of Programming Methodology - ETH Zurich",
"publisherId": "40c87fab-912c-4304-b2ee-b6c71e280a3c",
"isPreReleaseVersion": false
}
}