Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
614 changes: 432 additions & 182 deletions Cargo.lock

Large diffs are not rendered by default.

46 changes: 43 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exclude = [
resolver = "2"

[workspace.package]
edition = "2021"
edition = "2024"
license = "Apache-2.0 WITH LLVM-exception"
authors = ["The WAMR Project Developers"]

Expand All @@ -29,7 +29,7 @@ categories = ["api-bindings", "wasm"]
keywords = ["api-bindings", "wasm", "webassembly"]

[dependencies]
wamr-sys = { path = "crates/wamr-sys", version = "1.0.0" }
wamr-sys = { path = "crates/wamr-sys", version = "1.0.0", default-features = false }

[target.'cfg( target_os = "espidf" )'.dependencies]
esp-idf-sys = { version = "0.36", optional = true }
Expand All @@ -39,10 +39,50 @@ bindings_header = "./crates/wamr-sys/wasm-micro-runtime/core/iwasm/include/wasm_
component_dirs = ["./crates/wamr-sys/wasm-micro-runtime/build-scripts/esp-idf"]

[features]
default = ["std", "default-set", "libc-wasi"]
default-set = ["wamr-sys/default-set"]
std = ["wamr-sys/std"]
esp-idf = ["esp-idf-sys", "wamr-sys/esp-idf"]

aot = ["wamr-sys/aot"]
aot-stack-frame = ["wamr-sys/aot-stack-frame"]
bulk-memory = ["wamr-sys/bulk-memory"]
bulk-memory-optional = ["wamr-sys/bulk-memory-optional"]
custom-section = ["wamr-sys/custom-section"]
debug-interpreter = ["wamr-sys/debug-interpreter"]
dump-call-stack = ["wamr-sys/dump-call-stack"]
esp-idf = ["esp-idf-sys", "wamr-sys/esp-idf"]
fast-interpreter = ["wamr-sys/fast-interpreter"]
fast-jit = ["wamr-sys/fast-jit"]
gc = ["wamr-sys/gc"]
hw-bound-check = ["wamr-sys/hw-bound-check"]
interpreter = ["wamr-sys/interpreter"]
legacy-exception-handling = ["wamr-sys/legacy-exception-handling"]
libc-builtin = ["wamr-sys/libc-builtin"]
libc-uvwasi = ["wamr-sys/libc-uvwasi", "std", "wasi"]
libc-wasi = ["wamr-sys/libc-wasi", "std", "wasi"]
llvmjit = ["wamr-sys/llvmjit"]
memory-profiling = ["wamr-sys/memory-profiling"]
memory64 = ["wamr-sys/memory64"]
mini-loader = ["wamr-sys/mini-loader"]
multi-memory = ["wamr-sys/multi-memory"]
multi-module = ["wamr-sys/multi-module"]
name-section = ["wamr-sys/name-section"]
pthread = ["wamr-sys/pthread"]
pthread-semaphore = ["wamr-sys/pthread-semaphore"]
reference-types = ["wamr-sys/reference-types"]
shared-memory = ["wamr-sys/shared-memory"]
shrunk-memory = ["wamr-sys/shrunk-memory"]
simd = ["wamr-sys/simd"]
simde = ["wamr-sys/simde"]
tail-call = ["wamr-sys/tail-call"]
threads-manager = ["wamr-sys/threads-manager"]
wasi-nn = ["wamr-sys/wasi-nn"]
wasi-threads = ["wamr-sys/wasi-threads"]

# Deprecated aliases for backwards compatibility
fast-interp = ["fast-interpreter"]

wasi = []

[dev-dependencies]
wat = "1.243.0"
46 changes: 40 additions & 6 deletions crates/wamr-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,47 @@ include = [
bindgen = "0.72"
cc = "1.2"
cmake = "0.1"
globwalk = "0.9.1"

[features]
custom-section = []
dump-call-stack = []
default = []
default-set = ["aot", "libc-builtin", "libc-wasi", "simd", "reference-types", "bulk-memory", "interpreter", "fast-interpreter"]
esp-idf = []
hw-bound-check = []
llvmjit = []
multi-module = []
name-section = [ "custom-section" ]
std = []

aot = [] # WAMR_BUILD_AOT
aot-stack-frame = [] # WAMR_BUILD_AOT_STACK_FRAME
bulk-memory = [] # WAMR_BUILD_BULK_MEMORY
bulk-memory-optional = [] # WAMR_BUILD_BULK_MEMORY_OPT
custom-section = [] # WAMR_BUILD_CUSTOM_NAME_SECTION
debug-interpreter = [] # WAMR_BUILD_DEBUG_INTERP
dump-call-stack = [] # WAMR_BUILD_DUMP_CALL_STACK
fast-interpreter = ["interpreter"]
fast-jit = [] # WAMR_BUILD_FAST_JIT
gc = [] # WAMR_BUILD_GC
hw-bound-check = [] # WAMR_DISABLE_HW_BOUND_CHECK
interpreter = []
legacy-exception-handling = [] # WAMR_BUILD_EXCE_HANDLING
libc-builtin = [] # WAMR_BUILD_LIBC_BUILTIN
libc-uvwasi = [] # WAMR_BUILD_LIBC_UVWASI
libc-wasi = [] # WAMR_BUILD_LIBC_WASI
llvmjit = [] # WAMR_BUILD_JIT
memory-profiling = [] # WAMR_BUILD_MEMORY_PROFILING
memory64 = [] # WAMR_BUILD_MEMORY64
mini-loader = [] # WAMR_BUILD_MINI_LOADER
multi-memory = [] # WAMR_BUIL_MULTI_MEMORY
multi-module = [] # WAMR_BUILD_MULTI_MODULE
name-section = ["custom-section"]
pthread = [] # WAMR_BUILD_LIB_PTHREAD
pthread-semaphore = ["pthread"] # WAMR_BUILD_LIB_PTHREAD_SEMAPHORE
reference-types = [] # WAMR_BUILD_REF_TYPES
shared-memory = [] # WAMR_BUILD_SHARED_MEMORY
shrunk-memory = [] # WAMR_BUILD_SHRUNK_MEMORY
simd = [] # WAMR_BUILD_SIMD
simde = ["simd"] # WAMR_BUILD_LIB_SIMDE
tail-call = [] # WAMR_BUILD_TAIL_CALL
threads-manager = [] # WAMR_BUILD_THREAD_MGR
wasi-nn = [] # WAMR_BUILD_WASI_NN
wasi-threads = [] # WAMR_BUILD_LIB_WASI_THREADS

wamrc = []
Loading
Loading