forked from theseus-os/Theseus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
64 lines (53 loc) · 1.8 KB
/
Cargo.toml
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
[workspace]
## Here, we specify that all subdirectories in the kernel/ and applications/ directories should be built,
## except for those starting with a "." So, we build all kernel and application crates except hidden directories.
members = [
"kernel/[!.]*/",
"applications/[!.]*/",
]
exclude = [
## exclude the build directories
"build",
"cfg",
"compiler_plugins",
"libs",
"old_crates",
"scripts",
"target",
"tools",
"userspace",
## exclude unused test applications by default
# "applications/test_channel",
"applications/test_exception",
"applications/test_exception2",
"applications/test_filerw",
"applications/heap_eval",
"applications/test_mutex_sleep",
"applications/test_wait_queue",
# "applications/test_panic",
# "applications/unwind_test",
"applications/test_ixgbe",
"libtheseus",
]
[patch.crates-io]
### use our own version of volatile which supports zerocopy
volatile = { git = "https://github.com/theseus-os/volatile" }
### use our own no_std-compatilbe getopts
getopts = { git = "https://github.com/kevinaboos/getopts" }
### use our own no_std-compatible qp trie
qp-trie = { git = "https://github.com/theseus-os/qp-trie-rs" }
### use our own no_std-compatible downcast-rs
downcast-rs = { git = "https://github.com/theseus-os/downcast-rs" }
### use the latest version of smoltcp from github; the one on crates.io is out of date
smoltcp = { git = "https://github.com/m-labs/smoltcp" }
### These profiles fix the new rustc behavior of splitting one crate into many object files.
### That messes up our module loading, which is bad!
### See this link about profiles: https://doc.rust-lang.org/cargo/reference/manifest.html
# workaround rust-lang/rust#47074
[profile.dev]
codegen-units = 1
incremental = false
# workaround rust-lang/rust#47074
[profile.release]
codegen-units = 1
incremental = false