Skip to content

Commit

Permalink
Update Nix archive for Rust (#1261)
Browse files Browse the repository at this point in the history
* update nix archive for rust

* remove lunatic example
  • Loading branch information
coffee-cup authored Jan 13, 2025
1 parent 1f5e11d commit d8f7175
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 43 deletions.
5 changes: 0 additions & 5 deletions examples/lunatic-basic/.cargo/config.toml

This file was deleted.

10 changes: 0 additions & 10 deletions examples/lunatic-basic/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions examples/lunatic-basic/src/main.rs

This file was deleted.

4 changes: 4 additions & 0 deletions src/providers/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const CARGO_GIT_CACHE_DIR: &str = "/root/.cargo/git";
const CARGO_REGISTRY_CACHE_DIR: &str = "/root/.cargo/registry";
const CARGO_TARGET_CACHE_DIR: &str = "target";

const NIX_ARCHIVE: &str = "ef56e777fedaa4da8c66a150081523c5de1e0171";

pub struct RustProvider {}

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

setup.set_nix_archive(NIX_ARCHIVE.to_string());

Ok(setup)
}

Expand Down
7 changes: 0 additions & 7 deletions tests/docker_run_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1060,13 +1060,6 @@ async fn test_django_mysql() -> Result<()> {
Ok(())
}

#[tokio::test]
async fn test_lunatic_basic() {
let name = simple_build("./examples/lunatic-basic").await.unwrap();
let output = run_image(&name, None).await;
assert!(output.contains("PING-PONG"));
}

#[tokio::test]
async fn test_python_poetry() {
let name = simple_build("./examples/python-poetry").await.unwrap();
Expand Down

0 comments on commit d8f7175

Please sign in to comment.