chore: update to 2024 edition

This commit is contained in:
zach
2025-03-25 11:35:26 -07:00
parent f8e16dc875
commit 22f9cc8e26
4 changed files with 430 additions and 397 deletions

View File

@@ -4,7 +4,7 @@ members = ["extism-maturin", "manifest", "runtime", "libextism", "convert", "con
exclude = ["kernel"]
[workspace.package]
edition = "2021"
edition = "2024"
authors = ["The Extism Authors", "oss@extism.org"]
license = "BSD-3-Clause"
homepage = "https://extism.org"

View File

@@ -15,7 +15,7 @@ use base64::Engine;
/// and [`FromBytesOwned`] using [`serde_json::from_slice`]
#[macro_export]
macro_rules! encoding {
($pub:vis $name:ident, $to_vec:expr, $from_slice:expr) => {
($pub:vis $name:ident, $to_vec:expr_2021, $from_slice:expr_2021) => {
#[doc = concat!(stringify!($name), " encoding")]
#[derive(Debug)]
$pub struct $name<T>(pub T);

View File

@@ -240,10 +240,10 @@ struct DataPtrLength {
}
#[cfg(feature = "json_schema")]
fn wasmdata_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
fn wasmdata_schema(g: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema {
use schemars::{schema::SchemaObject, JsonSchema};
let mut schema: SchemaObject = <String>::json_schema(gen).into();
let objschema: SchemaObject = <DataPtrLength>::json_schema(gen).into();
let mut schema: SchemaObject = <String>::json_schema(g).into();
let objschema: SchemaObject = <DataPtrLength>::json_schema(g).into();
let types = schemars::schema::SingleOrVec::<schemars::schema::InstanceType>::Vec(vec![
schemars::schema::InstanceType::String,
schemars::schema::InstanceType::Object,

File diff suppressed because it is too large Load Diff