forked from viperproject/prusti-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
250 lines (250 loc) · 10 KB
/
package.json
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
{
"name": "prusti-assistant",
"displayName": "Prusti Assistant",
"description": "Verify Rust programs with the Prusti verifier.",
"version": "0.12.0",
"publisher": "viper-admin",
"repository": {
"type": "git",
"url": "https://github.com/viperproject/prusti-assistant.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/viperproject/prusti-assistant/issues"
},
"homepage": "https://github.com/viperproject/prusti-assistant",
"engines": {
"vscode": "^1.43.0",
"node": "*"
},
"categories": [
"Programming Languages"
],
"keywords": [
"rust",
"verification",
"prusti",
"viper"
],
"activationEvents": [
"onLanguage:rust"
],
"main": "./out/extension",
"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"
}
],
"configuration": {
"title": "Prusti Assistant",
"properties": {
"prusti-assistant.buildChannel": {
"type": "string",
"default": "LatestRelease",
"enum": [
"LatestRelease",
"LatestDev",
"Local"
],
"enumDescriptions": [
"The latest release of Prusti.",
"A version with frequent updates that might be unstable or have other issues.",
"A local build of Prusti, specified via localPrustiPath."
],
"description": "Specifies from which channel Prusti builds are downloaded."
},
"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 buildChannel 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": true,
"description": "If enabled more information about quantifiers is available. This feature has to be enabled also server-side (done by this extension)."
},
"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."
}
}
}
},
"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.2.22",
"@types/fs-extra": "^9.0.12",
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "^14.17.17",
"@types/semver": "^7.3.13",
"@types/tmp": "^0.2.1",
"@types/vscode": "^1.43.0",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.31.1",
"@vscode/test-electron": "^1.6.2",
"chai": "^4.3.4",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsdoc": "^36.1.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react": "^7.25.3",
"glob": "^7.1.7",
"mocha": "^9.1.3",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"ts-loader": "^9.0.0",
"typescript": "^4.4.3",
"vsce": "^1.102.0",
"webpack": "^5.53.0",
"webpack-cli": "^4.8.0"
},
"dependencies": {
"fs-extra": "^10.0.0",
"locate-java-home": "git+https://github.com/viperproject/locate-java-home.git",
"tmp": "^0.2.1",
"tree-kill": "^1.2.2",
"vs-verification-toolbox": "git+https://github.com/viperproject/vs-verification-toolbox.git"
}
}