Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
27 changes: 27 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Offline (air-gapped / intranet) build configuration.
#
# All third-party crates are vendored into the `vendor/` directory at the
# repository root (regenerate with `cargo vendor vendor` on a machine with
# network access). Source replacement below makes crates.io unreachable:
# cargo resolves every dependency from `vendor/` and hard-fails instead of
# touching the network when something is missing.
#
# `net.offline = true` additionally forbids any network access (git deps,
# registry updates, ...). To temporarily allow the network — e.g. to add a
# new dependency before re-vendoring — run:
# CARGO_NET_OFFLINE=false cargo vendor vendor
#
# NOTE: the vendor directory must cover the whole Cargo.lock graph, not just
# what Linux builds compile: lock re-resolution (any dependency change, a
# cargo version bump on build hosts, ...) needs the manifests of every
# locked package, including target-gated ones such as windows-sys and
# dev-dependencies like arbitrary. Do not hand-delete those from vendor/.

[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

[net]
offline = true
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ target/

# Debian packaging artifacts
/debian/.debhelper/
/debian/.cargo-home/
/debian/debhelper-build-stamp
/debian/files
/debian/*.debhelper*
Expand All @@ -30,5 +31,7 @@ target/
/debian/librofd-ffi-dev/
.zcode/

# Vendored dependencies for sw_64 offline builds (large, arch-specific)
# Vendored crates.io dependencies: required for offline / intranet builds
# (see .cargo/config.toml). Refresh on an internet-connected machine with
# `cargo vendor vendor` and ship this directory with the source.
vendor/
Loading
Loading