-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
110 lines (96 loc) · 3.96 KB
/
Cargo.toml
File metadata and controls
110 lines (96 loc) · 3.96 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
[workspace]
resolver = "2"
members = [
".", "rust-cuda-derive", "rust-cuda-kernel",
"examples/derive", "examples/lifetime", "examples/print",
"examples/single-source",
]
default-members = [
".", "rust-cuda-derive", "rust-cuda-kernel",
]
[workspace.package]
edition = "2021"
authors = ["Juniper Tyree <juniper.tyree@helsinki.fi>"]
repository = "https://github.com/juntyr/rust-cuda"
license = "MIT OR Apache-2.0"
rust-version = "1.81" # nightly
[workspace.dependencies]
# workspace-internal crates
rust-cuda = { version = "0.1", path = ".", default-features = false }
rust-cuda-derive = { version = "0.1", path = "rust-cuda-derive", default-features = false }
rust-cuda-kernel = { version = "0.1", path = "rust-cuda-kernel", default-features = false }
# third-party dependencies with unpublished patches
rustacuda = { git = "https://github.com/juntyr/RustaCUDA", rev = "c6ea7cc", default-features = false }
rustacuda_core = { git = "https://github.com/juntyr/RustaCUDA", rev = "c6ea7cc", default-features = false }
# crates.io third-party dependencies
cargo_metadata = { version = "0.19", default-features = false }
cargo-util = { version = "=0.2.16", default-features = false } # TODO: keep in sync with toolchain
colored = { version = "3.0", default-features = false }
const-type-layout = { version = "0.3.2", default-features = false }
final = { version = "0.1.1", default-features = false }
find_cuda_helper = { version = "0.2", default-features = false }
oneshot = { version = "0.1", default-features = false }
proc-macro2 = { version = "1.0", default-features = false }
proc-macro-error2 = { version = "2.0", default-features = false }
quote = { version = "1.0", default-features = false }
regex = { version = "1.10", default-features = false }
safer_owning_ref = { version = "0.5", default-features = false }
scratch = { version = "1.0", default-features = false }
seahash = { version = "4.1", default-features = false }
serde_json = { version = "1.0", default-features = false }
strip-ansi-escapes = { version = "0.2", default-features = false }
syn = { version = "2.0", default-features = false }
thiserror = { version = "2.0", default-features = false }
[workspace.lints.rust]
missing_docs = "warn"
unused_crate_dependencies = "warn"
unused_unsafe = "warn"
[workspace.lints.clippy]
complexity = { priority = -1, level = "warn" }
correctness = { priority = -1, level = "warn" }
nursery = { priority = -1, level = "warn" }
pedantic = { priority = -1, level = "warn" }
perf = { priority = -1, level = "warn" }
style = { priority = -1, level = "warn" }
suspicious = { priority = -1, level = "warn" }
unwrap_used = "warn"
expect_used = "warn"
indexing_slicing = "warn"
panic = "warn"
todo = "warn"
unimplemented = "warn"
unreachable = "warn"
module_name_repetitions = "allow"
multiple_unsafe_ops_per_block = "warn"
undocumented_unsafe_blocks = "warn"
cargo = { priority = -1, level = "warn" }
cargo_common_metadata = "allow" # TODO
multiple_crate_versions = "allow" # TODO
[package]
name = "rust-cuda"
version = "0.1.0"
authors = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = []
derive = ["dep:rust-cuda-derive"]
device = []
final = ["dep:final"]
host = ["dep:rustacuda", "dep:regex", "dep:oneshot", "dep:safer_owning_ref"]
kernel = ["dep:rust-cuda-kernel"]
[dependencies]
const-type-layout = { workspace = true, features = ["derive"] }
final = { workspace = true, optional = true }
oneshot = { workspace = true, features = ["std", "async"], optional = true }
regex = { workspace = true, optional = true }
rustacuda = { workspace = true, optional = true }
rustacuda_core = { workspace = true }
rust-cuda-derive = { workspace = true, optional = true }
rust-cuda-kernel = { workspace = true, optional = true }
safer_owning_ref = { workspace = true, optional = true }
[lints]
workspace = true