Skip to content

Instantly share code, notes, and snippets.

@repi
Created November 10, 2018 05:19
Show Gist options
  • Save repi/756e3fe794f22a460f7a3186b28334ab to your computer and use it in GitHub Desktop.
Save repi/756e3fe794f22a460f7a3186b28334ab to your computer and use it in GitHub Desktop.
Sync Rust crates for offline usage & docs
[package]
name = "depdl"
version = "0.1.0"
[dependencies]
# add whatever crates you want to be able to use offline here
futures = "*"
meowhash = "*"
metal = "*"
sha3 = "*"
ring = "*"
twox-hash = "*"
xxhash2 = "*"
sha2 = "*"
serde_json = "*"
redis = "*"
cask = "*"
lmdb = "*"
lmdb-rs = "*"
lmdb-zero = "*"
rayon = "*"
cgmath = "*"
protobuf = "*"
grpc = { version = "0.5.0" }
tls-api = { version = "0.1.20" }
memmap = "*"
failure = "*"
structopt = "*"
libloading = "*"
notify = "*"
minifb = "*"
toml = "*"
serde = "*"
serde_derive = "*"
log = "*"
fern = { version = "*", features = ["colored"] }
chrono = "*"
sentry = { version = "*", features = ["with_failure"], optional = true}
zip = "*"
rodio = { version = "*", optional = true }
ignore = "*"
rust-base58 = "*"
rand = "*"
time = "*"
reqwest = "*"
floating-duration = "*"
strum = "*"
strum_macros = "*"
humantime = "*"
winit = "*"
clap = "*"
shaderc = "*"
libc = "*"
foreign-types = "*"
colored = "*"
open = "*"
indicatif = "*"
thread_profiler = "*"
half = "*"
// intentionally empty
# download all crate dependencies
cargo +nightly fetch
# generate docs for offline usage, this will take a while
cargo +nightly doc
# view docs
#cargo +nightly doc --open
# to use a crate, check which versions you have offline and specify that exact version number in your Cargo.toml
# ls -R ~/.cargo/registry/cache/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment