chore: Upgrade xtask and uniffi-bindgen to Rust edition 2024

This commit is contained in:
Jonas Platte
2025-07-08 23:35:37 +02:00
committed by Damir Jelić
parent f9864b7ef4
commit 995ec618df
9 changed files with 10 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
[package]
name = "uniffi-bindgen"
version = "0.1.0"
edition = "2021"
edition = "2024"
publish = false
license = "Apache-2.0"

View File

@@ -1,7 +1,7 @@
[package]
name = "xtask"
version = "0.1.0"
edition = "2021"
edition = "2024"
publish = false
license = "Apache-2.0"

View File

@@ -7,7 +7,7 @@ use std::{
use clap::{Args, Subcommand, ValueEnum};
use xshell::cmd;
use crate::{build_docs, sh, workspace, DenyWarnings, Result, NIGHTLY};
use crate::{DenyWarnings, NIGHTLY, Result, build_docs, sh, workspace};
const WASM_TIMEOUT_ENV_KEY: &str = "WASM_BINDGEN_TEST_TIMEOUT";
const WASM_TIMEOUT_VALUE: &str = "120";

View File

@@ -1,7 +1,7 @@
use clap::{Args, Subcommand};
use xshell::cmd;
use crate::{sh, workspace, Result, NIGHTLY};
use crate::{NIGHTLY, Result, sh, workspace};
#[derive(Args)]
pub struct FixupArgs {

View File

@@ -5,7 +5,7 @@ use clap::{Args, Subcommand, ValueEnum};
use uniffi_bindgen::{bindings::KotlinBindingGenerator, library_mode::generate_bindings};
use xshell::cmd;
use crate::{sh, workspace, Result};
use crate::{Result, sh, workspace};
struct PackageValues {
name: &'static str,

View File

@@ -15,7 +15,7 @@ use fixup::FixupArgs;
use kotlin::KotlinArgs;
use release::ReleaseArgs;
use swift::SwiftArgs;
use xshell::{cmd, Shell};
use xshell::{Shell, cmd};
const NIGHTLY: &str = "nightly-2025-06-27";

View File

@@ -1,7 +1,7 @@
use clap::{Args, Subcommand, ValueEnum};
use xshell::{cmd, Cmd};
use xshell::{Cmd, cmd};
use crate::{sh, Result};
use crate::{Result, sh};
#[derive(Args)]
pub struct ReleaseArgs {

View File

@@ -8,7 +8,7 @@ use clap::{Args, Subcommand};
use uniffi_bindgen::{bindings::SwiftBindingGenerator, library_mode::generate_bindings};
use xshell::cmd;
use crate::{sh, workspace, Result};
use crate::{Result, sh, workspace};
/// Builds the SDK for Swift as a Static Library or XCFramework.
#[derive(Args)]

View File

@@ -4,7 +4,7 @@ use camino::Utf8PathBuf;
use serde::Deserialize;
use xshell::cmd;
use crate::{sh, Result};
use crate::{Result, sh};
pub fn root_path() -> Result<Utf8PathBuf> {
#[derive(Deserialize)]