forked from seL4/rust-sel4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.nix
40 lines (38 loc) · 810 Bytes
/
Cargo.nix
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
#
# Copyright 2023, Colias Group, LLC
#
# SPDX-License-Identifier: BSD-2-Clause
#
{ mk, localCrates, versions }:
mk {
package.name = "sel4-microkit";
dependencies = {
inherit (versions) cfg-if;
inherit (localCrates)
sel4-immediate-sync-once-cell
sel4-panicking-env
sel4-panicking
sel4-dlmalloc
sel4-sync
sel4-microkit-base
sel4-microkit-macros
;
sel4-runtime-common = localCrates.sel4-runtime-common // { features = [ "tls" "unwinding" "start" ]; };
sel4 = localCrates.sel4 // { features = [ "single-threaded" ]; };
};
features = {
default = [
"unwinding"
];
full = [
"default"
"alloc"
];
unwinding = [
"sel4-panicking/unwinding"
];
alloc = [
"sel4-panicking/alloc"
];
};
}