fix(rust): switch to stable

This commit is contained in:
Harsh Shandilya 2025-02-28 15:51:06 +05:30
parent 88418f7c46
commit 5c40422e41
4 changed files with 22 additions and 21 deletions

View file

@ -42,7 +42,7 @@
rustNightly = (import fenix { inherit pkgs; }).fromToolchainFile {
file = ./rust-toolchain.toml;
sha256 = "sha256-XPGNBesOSwZJCXgynlavqa5QdsTAnodTmbx6t6XUWsY=";
sha256 = "sha256-AJ6LX/Q/Er9kS15bn9iflkUwcgYqRQxiOIL2ToVAXaU=";
};
craneLib = (crane.mkLib pkgs).overrideToolchain rustNightly;

View file

@ -1,5 +1,5 @@
[toolchain]
channel = "nightly-2024-12-15"
channel = "1.85.0"
components = ["clippy", "rustfmt", "rust-src"]
targets = ["x86_64-unknown-linux-gnu"]
profile = "minimal"

View file

@ -57,9 +57,12 @@ pub fn freeze_repos(dir: &str) -> anyhow::Result<()> {
let repository = shared_repo.to_thread_local();
let branch = get_current_branch(&repository);
let remote = get_remote_for_branch(&repository, branch.as_deref());
if let Some(branch) = branch
&& let Some(remote) = remote
{
let Some(branch) = branch else {
continue;
};
let Some(remote) = remote else {
continue;
};
let remote_url = get_url(&repository, &remote);
let relative_path = entry
.path()
@ -77,7 +80,6 @@ pub fn freeze_repos(dir: &str) -> anyhow::Result<()> {
}
}
}
}
fs::write("gitice.lock", toml::to_string(&repos)?).context("could not write to lockfile!")?;
tracing::info!(
"Successfully generated lockfile with {} repos",

View file

@ -1,4 +1,3 @@
#![feature(let_chains)]
#![allow(clippy::missing_errors_doc, clippy::missing_panics_doc)]
pub mod cli;
pub mod git;