|
1 | 1 | [package] |
2 | | -name = "stack-graphs" |
3 | | -version = "0.14.1" |
4 | | -description = "Name binding for arbitrary programming languages" |
5 | | -homepage = "https://github.com/github/stack-graphs/tree/main/stack-graphs" |
6 | | -repository = "https://github.com/github/stack-graphs/" |
7 | | -readme = "README.md" |
8 | | -license = "MIT OR Apache-2.0" |
| 2 | +version.workspace = true |
| 3 | +rust-version.workspace = true |
| 4 | +edition.workspace = true |
| 5 | +publish = true |
| 6 | + |
| 7 | +name = "metaslang_stack_graphs" |
| 8 | +description = "Stack graphs utilities used in Slang" |
| 9 | +homepage = "https://nomicfoundation.github.io/slang/" |
| 10 | +repository = "https://github.com/NomicFoundation/slang/" |
9 | 11 | authors = [ |
10 | | - "GitHub <opensource+stack-graphs@github.com>", |
11 | | - "Douglas Creager <dcreager@dcreager.net>" |
| 12 | + "Slang Team <slang@nomic.foundation>", |
| 13 | + "Nomic Foundation <packages@nomic.foundation>", |
12 | 14 | ] |
13 | | -edition = "2018" |
14 | 15 |
|
15 | | -[features] |
16 | | -bincode = ["dep:bincode", "lsp-positions/bincode"] |
17 | | -copious-debugging = [] |
18 | | -serde = ["dep:serde", "serde_with", "lsp-positions/serde"] |
19 | | -storage = ["bincode", "rusqlite"] |
20 | | -visualization = ["serde", "serde_json"] |
| 16 | +readme = "README.md" |
| 17 | +license = "MIT" |
| 18 | +keywords = ["stack-graphs"] |
| 19 | +categories = ["compilers"] |
21 | 20 |
|
22 | | -[lib] |
23 | | -# All of our tests are in the tests/it "integration" test executable. |
24 | | -test = false |
| 21 | +# __NOMIC_FOUNDATION_FORK__ (disable optional features not used in Slang) |
| 22 | +# [features] |
| 23 | +# bincode = ["dep:bincode", "lsp-positions/bincode"] |
| 24 | +# copious-debugging = [] |
| 25 | +# serde = ["dep:serde", "serde_with", "lsp-positions/serde"] |
| 26 | +# storage = ["bincode", "rusqlite"] |
| 27 | +# visualization = ["serde", "serde_json"] |
25 | 28 |
|
26 | 29 | [dependencies] |
27 | | -bincode = { version = "2.0.0-rc.3", optional = true } |
28 | | -bitvec = "1.0.1" |
29 | | -controlled-option = "0.4.1" |
30 | | -either = "1.6" |
31 | | -enumset = "1.1" |
32 | | -fxhash = "0.2" |
33 | | -itertools = "0.10.2" |
34 | | -libc = "0.2" |
35 | | -lsp-positions = { version = "0.3", path = "../lsp-positions" } # explicit version is required to be able to publish crate |
36 | | -rusqlite = { version = "0.28", optional = true, features = ["bundled", "functions"] } |
37 | | -serde = { version = "1.0", optional = true, features = ["derive"] } |
38 | | -serde_json = { version = "1.0", optional = true } |
39 | | -serde_with = { version = "3.1", optional = true } |
40 | | -smallvec = { version = "1.6", features = ["union"] } |
41 | | -thiserror = { version = "1.0" } |
42 | | - |
43 | | -[dev-dependencies] |
44 | | -assert-json-diff = "2" |
45 | | -maplit = "1.0" |
46 | | -pretty_assertions = "0.7" |
47 | | -serde_json = { version = "1.0" } |
48 | | - |
49 | | -[package.metadata.docs.rs] |
50 | | -all-features = true |
| 30 | +bitvec = { workspace = true } |
| 31 | +controlled-option = { workspace = true } |
| 32 | +either = { workspace = true } |
| 33 | +enumset = { workspace = true } |
| 34 | +fxhash = { workspace = true } |
| 35 | +itertools = { workspace = true } |
| 36 | +libc = { workspace = true } |
| 37 | +lsp-positions = { workspace = true } |
| 38 | +smallvec = { workspace = true, features = ["union"] } |
| 39 | +thiserror = { workspace = true } |
| 40 | + |
| 41 | +# __NOMIC_FOUNDATION_FORK__ (disable optional dependencies not used in Slang) |
| 42 | +# [dependencies] |
| 43 | +# bincode = { version = "2.0.0-rc.3", optional = true } |
| 44 | +# rusqlite = { version = "0.28", optional = true, features = ["bundled", "functions"] } |
| 45 | +# serde = { version = "1.0", optional = true, features = ["derive"] } |
| 46 | +# serde_json = { version = "1.0", optional = true } |
| 47 | +# serde_with = { version = "3.1", optional = true } |
| 48 | + |
| 49 | +[lints.rust] |
| 50 | +unexpected_cfgs = "allow" # __NOMIC_FOUNDATION_FORK__ (disable warning about non-existing features, disabled above) |
| 51 | + |
| 52 | +[lints.rustdoc] |
| 53 | +all = "allow" # __NOMIC_FOUNDATION_FORK__ (disable lints to minimize changes to the fork) |
| 54 | + |
| 55 | +[lints.clippy] |
| 56 | +all = "allow" # __NOMIC_FOUNDATION_FORK__ (disable lints to minimize changes to the fork) |
0 commit comments