A small Git client for Motor OS, built on
the Motor OS branch of gitoxide. The
package is motor-gix:
- its binary is the
gixcommand, described in the gix manual; - its library holds the HTTPS, SSH and local transports, push, and pack maintenance that the Motor OS port of Jujutsu links.
rust-toolchain.toml names the Motor OS toolchain release this repository
builds with. Install that release first; its installer links it into rustup
under the same name. See the
toolchain guide.
# Tests
cargo test --locked
# The Motor OS binary
CARGO_TARGET_X86_64_UNKNOWN_MOTOR_LINKER="$(rustc --print sysroot)/lib/rustlib/x86_64-unknown-motor/sysroot/bin/motor-clang" \
cargo build --release --locked --target x86_64-unknown-motorThe linker setting is required. The Motor OS target names no linker, so without
it rustc links with the host's cc: the build succeeds, but the binary is
linked against the host's C library and is not a Motor OS executable.
RUSTUP_TOOLCHAIN takes precedence over the file, so a build of a new
toolchain release can compile this repository with the compilers it has just
built.
gix also builds on Motor OS itself with Lorry, the package manager in the
Motor OS toolchain. Lorry reads the same Cargo.toml and Cargo.lock:
# Once, with network access: fetch and review the locked dependencies.
lorry vendor
# Offline from here on.
lorry build --releaseThe native tests need the native-test-support feature:
lorry vendor --workspace --features native-test-support
lorry test --features native-test-support --lib --test native-port --test cliMIT or Apache-2.0, at your option.