mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2025-12-24 00:01:03 -05:00
chore: Upgrade xtask and uniffi-bindgen to Rust edition 2024
This commit is contained in:
committed by
Damir Jelić
parent
f9864b7ef4
commit
995ec618df
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "uniffi-bindgen"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
publish = false
|
||||
license = "Apache-2.0"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "xtask"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
publish = false
|
||||
license = "Apache-2.0"
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user