Skip to content

Commit

Permalink
Use remote source for mbedtls crates
Browse files Browse the repository at this point in the history
  • Loading branch information
nspin committed Aug 15, 2023
1 parent 474e594 commit e088908
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 529 deletions.
570 changes: 72 additions & 498 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,4 @@ members = [
"crates/sel4cp",
"crates/sel4cp/macros",
"crates/sel4cp/postcard",
"tmp/rust-mbedtls/mbedtls",
"tmp/rust-mbedtls/mbedtls-platform-support",
"tmp/rust-mbedtls/mbedtls-sys",
]
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ sel4-panicking-env = { path = "../../../../../../../sel4-panicking/env" }
tests-capdl-http-server-components-test-cpiofs = { path = "../cpiofs" }

[dependencies.mbedtls]
path = "../../../../../../../../tmp/rust-mbedtls/mbedtls"
git = "https://github.com/nspin/rust-mbedtls"
tag = "keep/6eef662dbf636d1ccf86078143b6854f"
default-features = false
features = ["no_std_deps"]

Expand Down
9 changes: 6 additions & 3 deletions crates/private/tests/root-task/mbedtls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ sel4-logging = { path = "../../../../sel4-logging" }
sel4-root-task = { path = "../../../../sel4-root-task" }

[dependencies.mbedtls]
path = "../../../../../tmp/rust-mbedtls/mbedtls"
git = "https://github.com/nspin/rust-mbedtls"
tag = "keep/6eef662dbf636d1ccf86078143b6854f"
default-features = false
features = ["no_std_deps", "debug"]

[dependencies.mbedtls-platform-support]
path = "../../../../../tmp/rust-mbedtls/mbedtls-platform-support"
git = "https://github.com/nspin/rust-mbedtls"
tag = "keep/6eef662dbf636d1ccf86078143b6854f"
default-features = false
features = []

[dependencies.mbedtls-sys-auto]
path = "../../../../../tmp/rust-mbedtls/mbedtls-sys"
git = "https://github.com/nspin/rust-mbedtls"
tag = "keep/6eef662dbf636d1ccf86078143b6854f"
default-features = false
features = []

Expand Down
3 changes: 2 additions & 1 deletion crates/sel4-async/network/mbedtls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ sel4-async-network = { path = ".." }
sel4-async-network-mbedtls-mozilla-ca-list = { path = "./mozilla-ca-list" }

[dependencies.mbedtls]
path = "../../../../tmp/rust-mbedtls/mbedtls"
git = "https://github.com/nspin/rust-mbedtls"
tag = "keep/6eef662dbf636d1ccf86078143b6854f"
default-features = false
features = ["no_std_deps"]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mk {
sel4-async-timers
sel4-panicking-env
tests-capdl-http-server-components-test-cpiofs
mbedtls
# mbedtls
];
features = {
debug = [ "mbedtls/debug" ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ mk {
sel4-root-task
sel4-logging
sel4-newlib
mbedtls
mbedtls-platform-support
mbedtls-sys-auto
# mbedtls
# mbedtls-platform-support
# mbedtls-sys-auto
];
dependencies = {
inherit (versions) log;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mk {
nix.local.dependencies = with localCrates; [
sel4-async-network
sel4-async-network-mbedtls-mozilla-ca-list
mbedtls
# mbedtls
];
nix.meta.requirements = [ "sel4" ];
nix.meta.skip = true;
Expand Down
26 changes: 13 additions & 13 deletions hacking/nix/scope/crates.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ let
"assets"
];
};
mbedtls-sys-auto = {
extraPaths = [
"build"
"vendor"
];
};
mbedtls = {
extraPaths = [
"benches"
"examples"
"tests"
];
};
# mbedtls-sys-auto = {
# extraPaths = [
# "build"
# "vendor"
# ];
# };
# mbedtls = {
# extraPaths = [
# "benches"
# "examples"
# "tests"
# ];
# };
};

crates = lib.listToAttrs (lib.forEach workspaceMemberPaths (cratePath: rec {
Expand Down
10 changes: 5 additions & 5 deletions hacking/nix/scope/generated-cargo-manifests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ let

externalCratePathAttrs = {
# "virtio-drivers" = "tmp/virtio-drivers";
"mbedtls" = "tmp/rust-mbedtls/mbedtls";
"mbedtls-sys-auto" = "tmp/rust-mbedtls/mbedtls-sys";
"mbedtls-platform-support" = "tmp/rust-mbedtls/mbedtls-platform-support";
# "mbedtls" = "tmp/rust-mbedtls/mbedtls";
# "mbedtls-sys-auto" = "tmp/rust-mbedtls/mbedtls-sys";
# "mbedtls-platform-support" = "tmp/rust-mbedtls/mbedtls-platform-support";
};

cratePathAttrs = localCratePathAttrs // externalCratePathAttrs;
Expand Down Expand Up @@ -99,8 +99,8 @@ let
};

mbedtlsSource = {
# git = "https://github.com/nspin/rust-mbedtls";
# tag = "keep/6eef662dbf636d1ccf86078143b6854f";
git = "https://github.com/nspin/rust-mbedtls";
tag = "keep/6eef662dbf636d1ccf86078143b6854f";
};

mbedtlsWith = features: (mbedtlsSource // {
Expand Down

0 comments on commit e088908

Please sign in to comment.