mirror of
https://github.com/encounter/objdiff.git
synced 2025-06-07 07:03:39 +00:00
Update dependencies
This commit is contained in:
parent
3d7f2b70dc
commit
a474b27d55
804
Cargo.lock
generated
804
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -75,6 +75,7 @@ std = [
|
|||||||
"object/std",
|
"object/std",
|
||||||
"prost?/std",
|
"prost?/std",
|
||||||
"serde?/std",
|
"serde?/std",
|
||||||
|
"similar?/std",
|
||||||
"typed-path?/std",
|
"typed-path?/std",
|
||||||
"dep:filetime",
|
"dep:filetime",
|
||||||
"dep:memmap2",
|
"dep:memmap2",
|
||||||
@ -127,7 +128,7 @@ pbjson = { version = "0.7", default-features = false, optional = true }
|
|||||||
prost = { version = "0.13", default-features = false, features = ["prost-derive"], optional = true }
|
prost = { version = "0.13", default-features = false, features = ["prost-derive"], optional = true }
|
||||||
regex = { version = "1.11", default-features = false, features = [], optional = true }
|
regex = { version = "1.11", default-features = false, features = [], optional = true }
|
||||||
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
|
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
|
||||||
similar = { version = "2.7", default-features = false, optional = true, git = "https://github.com/encounter/similar.git", branch = "no_std" }
|
similar = { version = "2.7", default-features = false, features = ["hashbrown"], optional = true, git = "https://github.com/encounter/similar.git", branch = "no_std" }
|
||||||
typed-path = { version = "0.10", default-features = false, optional = true }
|
typed-path = { version = "0.10", default-features = false, optional = true }
|
||||||
|
|
||||||
# config
|
# config
|
||||||
@ -164,7 +165,7 @@ yaxpeax-arm = { version = "0.3", default-features = false, optional = true }
|
|||||||
notify = { version = "8.0.0", optional = true }
|
notify = { version = "8.0.0", optional = true }
|
||||||
notify-debouncer-full = { version = "0.5.0", optional = true }
|
notify-debouncer-full = { version = "0.5.0", optional = true }
|
||||||
shell-escape = { version = "0.1", optional = true }
|
shell-escape = { version = "0.1", optional = true }
|
||||||
tempfile = { version = "3.17", optional = true }
|
tempfile = { version = "3.19", optional = true }
|
||||||
time = { version = "0.3", optional = true }
|
time = { version = "0.3", optional = true }
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "objdiff-wasm"
|
name = "objdiff-wasm"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
# TODO: Update to 2024
|
edition = "2024"
|
||||||
# https://github.com/bytecodealliance/wit-bindgen/pull/1183
|
|
||||||
edition = "2021"
|
|
||||||
rust-version.workspace = true
|
rust-version.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
@ -36,7 +34,7 @@ features = ["arm", "arm64", "mips", "ppc", "x86", "dwarf"]
|
|||||||
talc = { version = "4.4", default-features = false, features = ["lock_api"] }
|
talc = { version = "4.4", default-features = false, features = ["lock_api"] }
|
||||||
|
|
||||||
[target.'cfg(target_os = "wasi")'.dependencies]
|
[target.'cfg(target_os = "wasi")'.dependencies]
|
||||||
wit-bindgen = { version = "0.40", default-features = false, features = ["macros"] }
|
wit-bindgen = { version = "0.41", default-features = false, features = ["macros"] }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
wit-deps = "0.5"
|
wit-deps = "0.5"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
//! this is defined as a "weak" symbol. This means that other definitions are
|
//! this is defined as a "weak" symbol. This means that other definitions are
|
||||||
//! allowed to overwrite it if they are present in a compilation.
|
//! allowed to overwrite it if they are present in a compilation.
|
||||||
|
|
||||||
use alloc::{alloc, Layout};
|
use alloc::{Layout, alloc};
|
||||||
use core::ptr;
|
use core::ptr;
|
||||||
|
|
||||||
#[used]
|
#[used]
|
||||||
@ -31,7 +31,7 @@ static FORCE_CODEGEN_OF_CABI_REALLOC: unsafe extern "C" fn(
|
|||||||
usize,
|
usize,
|
||||||
) -> *mut u8 = cabi_realloc;
|
) -> *mut u8 = cabi_realloc;
|
||||||
|
|
||||||
#[no_mangle]
|
#[unsafe(no_mangle)]
|
||||||
pub unsafe extern "C" fn cabi_realloc(
|
pub unsafe extern "C" fn cabi_realloc(
|
||||||
old_ptr: *mut u8,
|
old_ptr: *mut u8,
|
||||||
old_len: usize,
|
old_len: usize,
|
||||||
@ -51,12 +51,12 @@ pub unsafe extern "C" fn cabi_realloc(
|
|||||||
if new_len == 0 {
|
if new_len == 0 {
|
||||||
return ptr::without_provenance_mut(align);
|
return ptr::without_provenance_mut(align);
|
||||||
}
|
}
|
||||||
layout = Layout::from_size_align_unchecked(new_len, align);
|
layout = unsafe { Layout::from_size_align_unchecked(new_len, align) };
|
||||||
alloc::alloc(layout)
|
unsafe { alloc::alloc(layout) }
|
||||||
} else {
|
} else {
|
||||||
debug_assert_ne!(new_len, 0, "non-zero old_len requires non-zero new_len!");
|
debug_assert_ne!(new_len, 0, "non-zero old_len requires non-zero new_len!");
|
||||||
layout = Layout::from_size_align_unchecked(old_len, align);
|
layout = unsafe { Layout::from_size_align_unchecked(old_len, align) };
|
||||||
alloc::realloc(old_ptr, layout, new_len)
|
unsafe { alloc::realloc(old_ptr, layout, new_len) }
|
||||||
};
|
};
|
||||||
if ptr.is_null() {
|
if ptr.is_null() {
|
||||||
// Print a nice message in debug mode, but in release mode don't
|
// Print a nice message in debug mode, but in release mode don't
|
||||||
|
Loading…
x
Reference in New Issue
Block a user