UPDATE: Update to Rust 2024 edition

This commit is contained in:
Nicolás Hatcher
2025-02-23 12:40:55 +01:00
parent 1ff0c38aa5
commit ce3f0f33c2
77 changed files with 186 additions and 186 deletions

View File

@@ -1,5 +1,5 @@
[package]
edition = "2021"
edition = "2024"
name = "ironcalc_nodejs"
version = "0.3.1"

View File

@@ -1,2 +1,2 @@
tab_spaces = 2
edition = "2021"
edition = "2024"

View File

@@ -1,12 +1,12 @@
#![deny(clippy::all)]
use napi::{self, bindgen_prelude::*, JsUnknown, Result};
use napi::{self, JsUnknown, Result, bindgen_prelude::*};
use serde::Serialize;
use ironcalc::{
base::{
types::{CellType, Style},
Model as BaseModel,
types::{CellType, Style},
},
error::XlsxError,
export::{save_to_icalc, save_to_xlsx},

View File

@@ -2,12 +2,12 @@
use serde::Serialize;
use napi::{self, bindgen_prelude::*, JsUnknown, Result};
use napi::{self, JsUnknown, Result, bindgen_prelude::*};
use ironcalc::base::{
BorderArea, ClipboardData, UserModel as BaseModel,
expressions::types::Area,
types::{CellType, Style},
BorderArea, ClipboardData, UserModel as BaseModel,
};
#[derive(Serialize)]

View File

@@ -1,7 +1,7 @@
[package]
name = "pyroncalc"
version = "0.3.0"
edition = "2021"
edition = "2024"
[lib]

View File

@@ -2,8 +2,8 @@ use pyo3::exceptions::PyException;
use pyo3::{create_exception, prelude::*, wrap_pyfunction};
use types::{PySheetProperty, PyStyle};
use xlsx::base::types::Style;
use xlsx::base::Model;
use xlsx::base::types::Style;
use xlsx::export::{save_to_icalc, save_to_xlsx};
use xlsx::import;

View File

@@ -5,7 +5,7 @@ authors = ["Nicolas Hatcher <nicolas@theuniverse.today>"]
description = "IronCalc Web bindings"
license = "MIT/Apache-2.0"
repository = "https://github.com/ironcalc/ironcalc"
edition = "2021"
edition = "2024"
[lib]
crate-type = ["cdylib"]

View File

@@ -1,13 +1,13 @@
use serde::Serialize;
use wasm_bindgen::{
prelude::{wasm_bindgen, JsError},
JsValue,
prelude::{JsError, wasm_bindgen},
};
use ironcalc_base::{
BorderArea, ClipboardData, UserModel as BaseModel,
expressions::{lexer::util::get_tokens as tokenizer, types::Area, utils::number_to_column},
types::{CellType, Style},
BorderArea, ClipboardData, UserModel as BaseModel,
};
fn to_js_error(error: String) -> JsError {