@cspell/dict-rust 4.0.12 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -32,39 +32,55 @@ Add the following to your VSCode settings:
32
32
 
33
33
  ```jsonc
34
34
  {
35
- "cSpell.dictionaries": ["rust"],
35
+ "cSpell.dictionaries": ["rust", "rust-crates"],
36
36
  }
37
37
  ```
38
38
 
39
39
  </details>
40
40
 
41
41
  <details>
42
- <summary>CSpell Settings `cspell.json`</summary>
42
+ <summary>CSpell Settings <code>cspell.json</code></summary>
43
43
 
44
44
  **`cspell.json`**
45
45
 
46
46
  ```jsonc
47
47
  {
48
- "dictionaries": ["rust"],
48
+ "dictionaries": ["rust", "rust-crates"],
49
49
  }
50
50
  ```
51
51
 
52
52
  </details>
53
53
 
54
54
  <details>
55
- <summary>CSpell Settings `cspell.config.yaml`</summary>
55
+ <summary>CSpell Settings <code>cspell.config.yaml</code></summary>
56
56
 
57
57
  **`cspell.config.yaml`**
58
58
 
59
59
  ```yaml
60
60
  dictionaries:
61
61
  - rust
62
+ - rust-crates
62
63
  ```
63
64
 
64
65
  </details>
65
66
 
66
- > [!NOTE]
67
- > **This package is bundled with CSpell.**
67
+ ## Local Installation using CDN
68
+
69
+ > **NOTE:** This package is bundled with CSpell.
70
+
71
+ ## Dictionary Information
72
+
73
+ | Name | Enabled | Description |
74
+ | ------------- | ------- | ----------------------------- |
75
+ | `rust` | | Rust Keyword Dictionary |
76
+ | `rust-crates` | | Common Rust Crates Dictionary |
77
+
78
+ ## Language Settings
79
+
80
+ | Name | Locale | File Type |
81
+ | ------------- | ------ | --------- |
82
+ | `rust` | `*` | `rust` |
83
+ | `rust-crates` | `*` | `rust` |
68
84
 
69
85
  <!--- @@inject-end: ./static/install.md --->
70
86
 
package/cspell-ext.json CHANGED
@@ -1,43 +1,25 @@
1
- // cSpell Settings
2
1
  {
3
2
  "id": "rust",
4
3
  "name": "Rust",
5
4
  "description": "Rust Keyword Dictionary",
6
5
  "readonly": true,
7
- // List of dictionary files to add to the global list of dictionaries
8
6
  "dictionaryDefinitions": [
9
7
  {
10
8
  "name": "rust",
11
- "path": "./dict/rust.txt",
9
+ "path": "./dict/rust.txt.gz",
12
10
  "description": "Rust Keyword Dictionary"
11
+ },
12
+ {
13
+ "name": "rust-crates",
14
+ "path": "./dict/crates.txt.gz",
15
+ "description": "Common Rust Crates Dictionary"
13
16
  }
14
17
  ],
15
- // Dictionaries to always be used.
16
- // Generally left empty
17
- "dictionaries": [],
18
- // Language Rules to apply to matching files.
19
- // Files are matched on `languageId` and `locale`
20
18
  "languageSettings": [
21
19
  {
22
- // VSCode languageId. i.e. typescript, java, go, cpp, javascript, markdown, latex
23
- // * will match against any file type.
24
20
  "languageId": "rust",
25
- // Language locale. i.e. en-US, de-AT, or ru. * will match all locals.
26
- // Multiple locals can be specified like: "en, en-US" to match both English and English US.
27
21
  "locale": "*",
28
- // By default the whole text of a file is included for spell checking
29
- // Adding patterns to the "includeRegExpList" to only include matching patterns
30
- "includeRegExpList": [],
31
- // To exclude patterns, add them to "ignoreRegExpList"
32
- "ignoreRegExpList": [],
33
- // regex patterns than can be used with ignoreRegExpList or includeRegExpList
34
- // Example: "pattern": [{ "name": "mdash", "pattern": "&mdash;" }]
35
- // This could be included in "ignoreRegExpList": ["mdash"]
36
- "patterns": [],
37
- // List of dictionaries to enable by name in `dictionaryDefinitions`
38
- "dictionaries": ["rust"],
39
- // Dictionary definitions can also be supplied here. They are only used iff "languageId" and "locale" match.
40
- "dictionaryDefinitions": []
22
+ "dictionaries": ["rust", "rust-crates"]
41
23
  }
42
24
  ]
43
25
  }
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cspell/dict-rust",
3
- "version": "4.0.12",
3
+ "version": "4.1.0",
4
4
  "description": "Rust dictionary for cspell.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -12,8 +12,8 @@
12
12
  "./cspell-ext.json": "./cspell-ext.json"
13
13
  },
14
14
  "scripts": {
15
- "build": "cspell-tools-cli compile --keep-raw-case src/rust.txt --no-compress -o ./dict",
16
- "test": "shx head -n 1000 src/rust.txt | cspell -c ./cspell-ext.json --locale=* --languageId=rust stdin",
15
+ "build": "cspell-tools-cli build",
16
+ "test": "cspell samples",
17
17
  "prepublishOnly": "echo pre-publish",
18
18
  "prepare:dictionary": "pnpm run build"
19
19
  },
@@ -39,8 +39,9 @@
39
39
  },
40
40
  "homepage": "https://github.com/streetsidesoftware/cspell-dicts/blob/main/dictionaries/rust#readme",
41
41
  "files": [
42
- "dict/rust.txt",
42
+ "dict/rust.txt.gz",
43
+ "dict/crates.txt.gz",
43
44
  "cspell-ext.json"
44
45
  ],
45
- "gitHead": "30c5c53b8e28152fc1d8a6cf0c872b068a64221a"
46
+ "gitHead": "cb65800c6de2a5b0f05996cf68aab96fc71f45fa"
46
47
  }
package/dict/rust.txt DELETED
@@ -1,128 +0,0 @@
1
-
2
- # cspell-tools: keep-case no-split
3
-
4
- Add
5
- Arc
6
- BitAnd
7
- BitOr
8
- BitXor
9
- Deref
10
- DerefMut
11
- Div
12
- Err
13
- Fn
14
- FnMut
15
- FnOnce
16
- Mul
17
- Neg
18
- None
19
- Not
20
- PartialEq
21
- PartialOrd
22
- RefCell
23
- Rem
24
- Rustacean
25
- Self
26
- Shl
27
- Shr
28
- Some
29
- Sub
30
- abstract
31
- alignof
32
- alloc
33
- as
34
- assert
35
- assert_eq
36
- become
37
- bindgen
38
- bool
39
- box
40
- break
41
- char
42
- clippy
43
- cmp
44
- const
45
- continue
46
- crate
47
- deallocate
48
- dedup
49
- deserialize
50
- do
51
- drain
52
- else
53
- enum
54
- eprint
55
- eprintln
56
- extern
57
- f32
58
- f64
59
- final
60
- fold
61
- for
62
- format_args
63
- i16
64
- i32
65
- i64
66
- i8
67
- if
68
- impl
69
- in
70
- include_str
71
- isize
72
- iter
73
- let
74
- loop
75
- macro
76
- map
77
- match
78
- millis
79
- mod
80
- move
81
- mpsc
82
- msrv
83
- mut
84
- mutex
85
- offsetof
86
- option_env
87
- override
88
- panic
89
- powf
90
- powi
91
- println
92
- priv
93
- proc
94
- pub
95
- pure
96
- ref
97
- return
98
- rustdoc
99
- rustfmt
100
- rustup
101
- self
102
- serde
103
- sizeof
104
- static
105
- str
106
- stringify
107
- struct
108
- super
109
- sync
110
- tokio
111
- toml
112
- toolchain
113
- trait
114
- typeof
115
- u8
116
- unoptimized
117
- unsafe
118
- unsized
119
- unwrap
120
- use
121
- usize
122
- virtual
123
- wasm
124
- where
125
- while
126
- writeln
127
- yield
128
- zip