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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
- name: Run Tests
run: cargo test --all-features --verbose

- name: Run Tests (no ssl)
run: cargo test --no-default-features --verbose --lib

- name: Run Audit
# RUSTSEC-2021-0145 is criterion so only within benchmarks
run: cargo audit -D warnings
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![deny(missing_docs)]
#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/README.md"))]
#[cfg(feature = "online")]
use rand::{distributions::Alphanumeric, Rng};
use std::io::Write;
use std::path::PathBuf;
Expand Down Expand Up @@ -104,6 +105,7 @@ impl Cache {
self.repo(Repo::new(model_id, RepoType::Space))
}

#[cfg(feature = "online")]
pub(crate) fn temp_path(&self) -> PathBuf {
let mut path = self.path().clone();
path.push("tmp");
Expand Down