Skip to content

Commit d8f7175

Browse files
authored
Update Nix archive for Rust (#1261)
* update nix archive for rust * remove lunatic example
1 parent 1f5e11d commit d8f7175

File tree

5 files changed

+4
-43
lines changed

5 files changed

+4
-43
lines changed

examples/lunatic-basic/.cargo/config.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/lunatic-basic/Cargo.toml

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/lunatic-basic/src/main.rs

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/providers/rust.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const CARGO_GIT_CACHE_DIR: &str = "/root/.cargo/git";
2222
const CARGO_REGISTRY_CACHE_DIR: &str = "/root/.cargo/registry";
2323
const CARGO_TARGET_CACHE_DIR: &str = "target";
2424

25+
const NIX_ARCHIVE: &str = "ef56e777fedaa4da8c66a150081523c5de1e0171";
26+
2527
pub struct RustProvider {}
2628

2729
impl Provider for RustProvider {
@@ -76,6 +78,8 @@ impl RustProvider {
7678
setup.add_nix_pkgs(&[Pkg::new("musl"), Pkg::new("musl.dev")]);
7779
}
7880

81+
setup.set_nix_archive(NIX_ARCHIVE.to_string());
82+
7983
Ok(setup)
8084
}
8185

tests/docker_run_tests.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,13 +1060,6 @@ async fn test_django_mysql() -> Result<()> {
10601060
Ok(())
10611061
}
10621062

1063-
#[tokio::test]
1064-
async fn test_lunatic_basic() {
1065-
let name = simple_build("./examples/lunatic-basic").await.unwrap();
1066-
let output = run_image(&name, None).await;
1067-
assert!(output.contains("PING-PONG"));
1068-
}
1069-
10701063
#[tokio::test]
10711064
async fn test_python_poetry() {
10721065
let name = simple_build("./examples/python-poetry").await.unwrap();

0 commit comments

Comments
 (0)