-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
154 lines (140 loc) · 5.35 KB
/
Cargo.toml
File metadata and controls
154 lines (140 loc) · 5.35 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
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
[workspace.package]
homepage = "https://oro.sh"
repository = "https://github.com/oro-os/kernel"
license = "MPL-2.0"
version = "0.0.0"
edition = "2024"
[workspace]
resolver = "2"
members = [
"oro",
"oro-arch-aarch64",
"oro-arch-x86_64",
"oro-boot",
"oro-boot-protocol",
"oro-bootloader-limine",
"oro-dbgutil",
"oro-debug",
"oro-kernel",
"oro-kernel-acpi",
"oro-kernel-acpica-sys",
"oro-kernel-arch-aarch64",
"oro-kernel-arch-x86_64",
"oro-kernel-dtb",
"oro-kernel-elf",
"oro-kernel-macro",
"oro-kernel-macro-proc",
"oro-kernel-mem",
"oro-kernel-pci",
"oro-kernel-sync",
"oro-kernel-type",
"oroutil",
]
default-members = ["oroutil"]
[workspace.metadata.oro]
build-std = ["alloc", "compiler_builtins", "core"]
build-std-features = ["compiler-builtins-mem"]
[workspace.metadata.oro.target.x86_64]
target-json = "oro-kernel-arch-x86_64/x86_64-unknown-oro.json"
features = ["oro-debug/uart16550"]
[workspace.metadata.oro.target.aarch64]
target-json = "oro-kernel-arch-aarch64/aarch64-unknown-oro.json"
features = ["oro-debug/pl011"]
[workspace.dependencies]
oro-arch-aarch64.path = "oro-arch-aarch64"
oro-arch-x86_64.path = "oro-arch-x86_64"
oro-kernel-acpi.path = "oro-kernel-acpi"
oro-kernel-acpica-sys.path = "oro-kernel-acpica-sys"
oro-kernel-arch-aarch64.path = "oro-kernel-arch-aarch64"
oro-kernel-arch-x86_64.path = "oro-kernel-arch-x86_64"
oro-boot.path = "oro-boot"
oro-boot-protocol.path = "oro-boot-protocol"
oro-kernel-mem.path = "oro-kernel-mem"
oro-kernel-macro.path = "oro-kernel-macro"
oro-kernel-macro-proc.path = "oro-kernel-macro-proc"
oro-kernel-elf.path = "oro-kernel-elf"
oro-kernel.path = "oro-kernel"
oro-debug.path = "oro-debug"
oro-kernel-type.path = "oro-kernel-type"
oro-kernel-dtb.path = "oro-kernel-dtb"
oro-dbgutil.path = "oro-dbgutil"
oro-kernel-sync.path = "oro-kernel-sync"
oro-kernel-pci.path = "oro-kernel-pci"
oro.path = "oro"
# External dependencies
limine = "=0.5.0"
uart_16550 = "=0.3.2"
volatile-register = "=0.2.2"
buddy_system_allocator = "=0.11.0"
hashbrown = { version = "=0.15.2", default-features = false, features = ["allocator-api2", "inline-more", "nightly"] }
foldhash = { version = "=0.1.4", default-features = false }
nolock = { version = "=0.4.1", default-features = false, features = ["queues"] }
# Development dependencies
bindgen = "=0.71.1"
syn = { version = "=2.0.100", features = ["full", "printing"] }
quote = "=1.0.40"
proc-macro2 = { version = "=1.0.94", features = ["proc-macro"] }
convert_case = "=0.6.0"
# `oroutil` dependencies
fast-glob = "=0.4.5"
clap = { version = "=4.5.40", features = ["derive"] }
log = "=0.4.27"
colog = "=1.3.0"
serde = { version = "=1.0.219", features = ["derive"] }
serde_json = "=1.0.140"
ignore = "=0.4.23"
similar = "=2.7.0"
taplo = "=0.14.0"
strum = { version = "=0.27.1", features = ["derive"] }
cargo_metadata = "=0.20.0"
indicatif = "=0.18.3"
indicatif-log-bridge = "=0.2.3"
build-plan = "=0.1.1"
[workspace.lints.rust]
missing_docs = "warn"
elided_lifetimes_in_paths = "deny"
future-incompatible = "warn"
missing-unsafe-on-extern = "warn"
unused-lifetimes = "warn"
unused-qualifications = "warn"
unused-import-braces = "warn"
variant-size-differences = "warn"
trivial-numeric-casts = "warn"
unit-bindings = "warn"
unused-features = "warn" # TODO(qix-): Doesn't do what I'd like it to: https://github.com/rust-lang/rust/issues/23528
[workspace.lints.rustdoc]
all = { level = "deny", priority = -1 }
private_doc_tests = "allow"
private_intra_doc_links = "allow"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
missing_docs_in_private_items = "warn"
integer_division = "warn"
module_name_repetitions = "allow"
verbose_bit_mask = "allow"
too_many_lines = "allow"
missing_errors_doc = "allow"
struct_field_names = "allow"
items_after_statements = "allow"
cast_possible_truncation = "allow"
assertions_on_constants = "allow"
new_without_default = "allow"
needless_doctest_main = "allow"
tabs_in_doc_comments = "allow"
redundant_closure_for_method_calls = "allow"
[profile.dev]
panic = "abort" # Use "abort" panic strategy
debug = "full" # Full debugging symbols
[profile.release]
opt-level = 3 # Maximum optimizations
lto = "fat" # Perform LTO across all crates
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
strip = true # Strip symbols from binary
incremental = false # Disable incremental building
panic = "abort" # Use "abort" panic strategy
debug = 0 # Do not generate debug information
[profile.relwithdebinfo]
inherits = "release"
debug = "full" # Full debugging symbols
strip = false # Don't strip symbols from binary