chore(workspace): Rust workspace R0 — builder image, core crate (JS-compatible JSON, report contracts, facade), wasm facade, core-wasm package with proofs
This commit is contained in:
1 parent
5fec0654d3
commit
2a38fa37b5
39 files changed
+1913
-1
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# Faunosteo reference Rust build environment (plan R0, RUST_ARCHITECTURE_REVIEW Annex B).
|
||||
# Every Rust command of the repository runs through this image (CI and local), so the
|
||||
# toolchain is identical everywhere and the production VPS never needs Rust.
|
||||
#
|
||||
# docker build -f docker/rust-builder.Dockerfile -t faunosteo_rust_builder:1.99.0 docker
|
||||
# bash docker/rust-run.sh cargo test --workspace --exclude faunosteo-worker
|
||||
#
|
||||
# The pinned versions below must match rust-toolchain.toml (channel) and Cargo.lock
|
||||
# (wasm-bindgen crate): docker/wasm-build.sh refuses to run when they differ.
|
||||
FROM rust:1.99.0-bookworm
|
||||
|
||||
ARG WASM_BINDGEN_VERSION=0.2.129
|
||||
ARG CARGO_DENY_VERSION=0.20.2
|
||||
|
||||
# The wasm target is the browser build of crates/wasm.
|
||||
RUN rustup target add wasm32-unknown-unknown
|
||||
|
||||
# Build tools compiled from crates.io at pinned versions with their own lockfiles.
|
||||
RUN cargo install wasm-bindgen-cli --version "${WASM_BINDGEN_VERSION}" --locked \
|
||||
&& cargo install cargo-deny --version "${CARGO_DENY_VERSION}" --locked \
|
||||
&& rm -rf /usr/local/cargo/registry
|
||||
|
||||
# The official image installs rustup's minimal profile: without this line every container
|
||||
# would download rustfmt and clippy again (rust-toolchain.toml lists them as components).
|
||||
RUN rustup component add rustfmt clippy
|
||||
|
||||
WORKDIR /w
|
||||
Reference in new issue
Block a user