Merge pull request #114 from matter-labs/rust-1.78

chore(deps): update to rust version 1.78
This commit is contained in:
Harald Hoyer 2024-06-10 14:15:46 +02:00 committed by GitHub
commit 27f7f3b892
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 15 additions and 15 deletions

View file

@ -58,7 +58,7 @@ pub async fn post_command(
hasher.update(item.commands.as_bytes());
let hash = hasher.finalize();
let digest = hex::encode(hash);
admin_state.last_digest = digest.clone();
admin_state.last_digest.clone_from(&digest);
conn.store_secret(admin_state, "state").await?;
let mut responds = VaultCommandsResponse {

View file

@ -82,7 +82,7 @@ pub async fn post_sign(
hasher.update(item.sign_request_data.as_bytes());
let hash = hasher.finalize();
let digest = hex::encode(hash);
admin_state.last_digest = digest.clone();
admin_state.last_digest.clone_from(&digest);
conn.store_secret(admin_state, "state").await?;
// Sign SGX enclave

View file

@ -291,6 +291,7 @@ async fn send_sig_request(args: SignTeeArgs) -> Result<()> {
// open out_file early to fail fast if it is not writable
let mut out_file = OpenOptions::new()
.create(true)
.truncate(true)
.write(true)
.open(&args.out)?;

View file

@ -122,17 +122,17 @@ pub struct AuthDataField {
/// Vault auth
#[derive(Debug, Default, Serialize, Deserialize)]
pub struct AuthField {
/// TODO
/// if the auth token is renewable
pub renewable: bool,
/// TODO
/// the lease duration of the auth token
pub lease_duration: isize,
/// TODO
/// the policies of the auth token
pub policies: Vec<String>,
/// TODO
/// the accessor of the auth token
pub accessor: String,
/// TODO
/// the client token
pub client_token: String,
/// TODO
/// additional metadata
pub metadata: AuthMetadataField,
}
@ -141,7 +141,7 @@ pub struct AuthField {
pub struct AuthResponse {
/// vault auth
pub auth: AuthField,
///
/// vault auth data
pub data: AuthDataField,
}

7
flake.lock generated
View file

@ -238,17 +238,16 @@
]
},
"locked": {
"lastModified": 1707876656,
"narHash": "sha256-urnZg6e2JjziBosarDB1MnjPeVqcu3PeSqIpqQKYrdg=",
"lastModified": 1717985971,
"narHash": "sha256-24h/qKp0aeI+Ew13WdRF521kY24PYa5HOvw0mlrABjk=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "3ad32bb27c700b59306224e285b66577e3532dfc",
"rev": "abfe5b3126b1b7e9e4daafc1c6478d17f0b584e7",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "3ad32bb27c700b59306224e285b66577e3532dfc",
"type": "github"
}
},

View file

@ -19,7 +19,7 @@
};
rust-overlay = {
url = "github:oxalica/rust-overlay?rev=3ad32bb27c700b59306224e285b66577e3532dfc";
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixsgx-flake/nixpkgs";
};

View file

@ -1,3 +1,3 @@
[toolchain]
channel = "1.75"
channel = "1.78"
components = ["rustfmt", "clippy", "rust-src"]