chore(nix-daemon): upgrade to 2024 edition
Part of #114 This edition change doesn't affect this crate except for formatting. Change-Id: I8e2650f6de776658a14ee5a11bc7a63ad57fae89 Reviewed-on: https://cl.snix.dev/c/snix/+/30591 Reviewed-by: Florian Klink <flokli@flokli.de> Autosubmit: Bence Nemes <nemes.bence1@gmail.com> Tested-by: besadii
This commit is contained in:
parent
5602582a9e
commit
d829261a09
5 changed files with 7 additions and 5 deletions
|
|
@ -8495,7 +8495,7 @@ rec {
|
|||
"nix-daemon" = rec {
|
||||
crateName = "nix-daemon";
|
||||
version = "0.1.0";
|
||||
edition = "2021";
|
||||
edition = "2024";
|
||||
crateBin = [
|
||||
{
|
||||
name = "nix-daemon";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "nix-daemon"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
async-trait = "0.1.83"
|
||||
|
|
|
|||
2
snix/nix-daemon/rustfmt.toml
Normal file
2
snix/nix-daemon/rustfmt.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# FUTUREWORK: move to .. once all crates are migrated (#114)
|
||||
edition = "2024"
|
||||
|
|
@ -2,7 +2,7 @@ use clap::Parser;
|
|||
use mimalloc::MiMalloc;
|
||||
use nix_compat::nix_daemon::handler::NixDaemon;
|
||||
use nix_daemon::SnixDaemon;
|
||||
use snix_store::utils::{construct_services, ServiceUrlsGrpc};
|
||||
use snix_store::utils::{ServiceUrlsGrpc, construct_services};
|
||||
use std::{error::Error, sync::Arc};
|
||||
use tokio_listener::SystemOptions;
|
||||
use tracing::error;
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@ use std::{
|
|||
|
||||
use nix_compat::{
|
||||
nix_daemon::{
|
||||
types::{AddToStoreNarRequest, UnkeyedValidPathInfo},
|
||||
NixDaemonIO,
|
||||
types::{AddToStoreNarRequest, UnkeyedValidPathInfo},
|
||||
},
|
||||
nixbase32,
|
||||
store_path::{build_ca_path, StorePath},
|
||||
store_path::{StorePath, build_ca_path},
|
||||
};
|
||||
use snix_castore::{blobservice::BlobService, directoryservice::DirectoryService};
|
||||
use snix_store::{nar::ingest_nar_and_hash, path_info::PathInfo, pathinfoservice::PathInfoService};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue