Skip to content

Commit

Permalink
moew cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer committed Sep 20, 2023
1 parent 8ab92bf commit 3d3cd27
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 14 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ jobs:
sudo apt-get update
sudo apt-get install -y gcc-multilib g++-multilib
- name: Setup Ubuntu x64
if: ${{ matrix.bits == 64 && matrix.os == 'ubuntu-latest' }}
run: |
rustup target add aarch64-unknown-linux-gnu
- name: Setup macOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
rustup target add aarch64-apple-darwin
# Set up 32 bit systems

- name: Config Windows x86
Expand Down Expand Up @@ -84,6 +94,16 @@ jobs:
- name: Build Release
run: cargo build --verbose --release $RUST_TARGET_FLAG

# Cross compilation

- name: Build aarch64 macOS
if: ${{ matrix.os == 'macos-latest' }}
run: cargo build --verbose --target aarch64-apple-darwin

- name: Build aarch64 Ubuntu
if: ${{ matrix.bits == 64 && matrix.os == 'ubuntu-latest' }}
run: cargo build --verbose --target aarch64-unknown-linux-gnu

# Test ...

- name: Test
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ exclude = ["/tests"]
crate-type = ["staticlib", "cdylib", "lib"]

[build-dependencies]
libcrux_platform = { version = "=0.0.1", path = "sys/platform" }
libcrux_platform = { version = "=0.0.2", path = "sys/platform" }

[dependencies]
libcrux_hacl = { version = "=0.0.2", path = "sys/hacl" }
libcrux_platform = { version = "=0.0.1", path = "sys/platform" }
libcrux_platform = { version = "=0.0.2", path = "sys/platform" }
rand = { version = "0.8" }
log = { version = "0.4", optional = true }
# WASM API
Expand Down Expand Up @@ -61,7 +61,7 @@ wasm-bindgen-test = "0.3"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
criterion = "0.5"
libcrux-pqclean = { version = "*", path = "sys/pqclean" }
libcrux_pqclean = { version = "*", path = "sys/pqclean" }

# Benchmarking "OpenSSL"
# XXX: We don't do this for Windows or wasm right now.
Expand Down
4 changes: 2 additions & 2 deletions sys/hacl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ crate-type = ["cdylib", "rlib"]

[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
libcrux_platform = { version = "=0.0.1", path = "../platform" }
bindgen = { version = "0.66", optional = true }
libcrux_platform = { version = "=0.0.2", path = "../platform" }
bindgen = { version = "0.68", optional = true }

[features]
bindings = ["bindgen"] # generate fresh bindings
Expand Down
4 changes: 2 additions & 2 deletions sys/libjade/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ readme = "Readme.md"

[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
libcrux_platform = { version = "=0.0.1", path = "../platform" }
libcrux_platform = { version = "=0.0.2", path = "../platform" }

[target.'cfg(not(windows))'.build-dependencies]
bindgen = { version = "0.66", optional = true }
bindgen = { version = "0.68", optional = true }

[dev-dependencies]
pretty_env_logger = "0.5"
Expand Down
6 changes: 4 additions & 2 deletions sys/platform/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[package]
name = "libcrux_platform"
version = "0.0.1"
edition = "2021"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true

[dependencies]
libc = "0.2.147"
10 changes: 6 additions & 4 deletions sys/pqclean/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[package]
name = "libcrux-pqclean"
version = "0.1.0"
edition = "2021"
name = "libcrux_pqclean"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true

[dependencies]

[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
bindgen = "0.66"
bindgen = "0.68"
fs_extra = "1.2"
2 changes: 1 addition & 1 deletion sys/pqclean/src/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.68.1 */

pub const SHAKE128_RATE: u32 = 168;
pub const SHAKE256_RATE: u32 = 136;
Expand Down

0 comments on commit 3d3cd27

Please sign in to comment.