Skip to content

Commit d56f14e

Browse files
committed
Move libcrux to a submodule in deps
1 parent b9124e7 commit d56f14e

6 files changed

Lines changed: 11 additions & 14 deletions

File tree

‎.gitmodules‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
path = deps/verus
33
url = https://github.com/zhengyao-lin/verus.git
44
branch = x509
5+
[submodule "deps/libcrux"]
6+
path = deps/libcrux
7+
url = https://github.com/zhengyao-lin/libcrux.git
8+
branch = main

‎Cargo.lock‎

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ default-members = [
1818
exclude = [
1919
"tools/verusc",
2020
"deps/verus",
21+
"deps/libcrux",
2122
]
2223

2324
resolver = "2"

‎chain/Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ vest = { path = "../deps/vest" }
1111
polyfill = { path = "../polyfill" }
1212
macros = { path = "../macros" }
1313
parser = { path = "../parser" }
14-
libcrux = { git = "https://github.com/zhengyao-lin/libcrux.git" }
15-
libcrux-hacl = { git = "https://github.com/zhengyao-lin/libcrux.git" }
14+
libcrux = { path = "../deps/libcrux" }
15+
libcrux-hacl = { path = "../deps/libcrux/sys/hacl" }
1616
chrono = "0.4.38"
1717
aws-lc-rs = "1.10.0"
1818
rspec = { path = "../rspec" }

‎deps/libcrux‎

Submodule libcrux added at c69868e

‎tools/activate.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ unset -f vargo 2>/dev/null || true
99
REPO_ROOT=$(pwd)
1010
REAL_CARGO="$(which cargo)"
1111

12+
git submodule update --init
13+
1214
# Build verus
13-
(git submodule update --init &&
14-
cd deps/verus/source &&
15+
(cd deps/verus/source &&
1516
[ -f z3 ] || ./tools/get-z3.sh &&
1617
source ../tools/activate &&
1718
vargo build --release) || return 1

0 commit comments

Comments
 (0)