summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock3
-rw-r--r--Cargo.toml4
-rw-r--r--crates/tinywasm/src/store/memory.rs3
-rw-r--r--rust-toolchain.toml2
4 files changed, 9 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 732fcd2..dfd58ac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1400,8 +1400,7 @@ dependencies = [
[[package]]
name = "pathfinder_simd"
version = "0.5.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0444332826c70dc47be74a7c6a5fc44e23a7905ad6858d4162b658320455ef93"
+source = "git+https://github.com/servo/pathfinder?rev=e4fcda0d5259d0acf902aee6de7d2501f2bd6629#e4fcda0d5259d0acf902aee6de7d2501f2bd6629"
dependencies = [
"rustc_version",
]
diff --git a/Cargo.toml b/Cargo.toml
index bbe7e57..7e85d93 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -36,3 +36,7 @@ opt-level=3
lto="thin"
codegen-units=1
debug=true
+
+[patch.crates-io]
+# https://github.com/servo/pathfinder/pull/548
+pathfinder_simd={git="https://github.com/servo/pathfinder", rev="e4fcda0d5259d0acf902aee6de7d2501f2bd6629"}
diff --git a/crates/tinywasm/src/store/memory.rs b/crates/tinywasm/src/store/memory.rs
index 588d995..cbaed8d 100644
--- a/crates/tinywasm/src/store/memory.rs
+++ b/crates/tinywasm/src/store/memory.rs
@@ -177,14 +177,17 @@ impl MemoryInstance {
/// UB for loading things things like packed structs
pub(crate) unsafe trait MemLoadable<const T: usize>: Sized + Copy {
/// Load a value from memory
+ #[allow(unused)]
fn from_le_bytes(bytes: [u8; T]) -> Self;
/// Load a value from memory
+ #[allow(unused)]
fn from_be_bytes(bytes: [u8; T]) -> Self;
}
macro_rules! impl_mem_loadable_for_primitive {
($($type:ty, $size:expr),*) => {
$(
+ #[allow(unused)]
#[allow(unsafe_code)]
unsafe impl MemLoadable<$size> for $type {
#[inline]
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index c046a09..6c22ba5 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -1,2 +1,2 @@
[toolchain]
-channel="nightly"
+channel="nightly-2024-02-11"