Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/jit-icache-coherence/Cargo.toml
1690 views
1
[package]
2
name = "wasmtime-internal-jit-icache-coherence"
3
version.workspace = true
4
authors.workspace = true
5
description = "INTERNAL: Utilities for JIT icache maintenance"
6
documentation = "https://docs.rs/jit-icache-coherence"
7
license = "Apache-2.0 WITH LLVM-exception"
8
repository = "https://github.com/bytecodealliance/wasmtime"
9
edition.workspace = true
10
rust-version.workspace = true
11
12
[lints]
13
workspace = true
14
15
[dependencies]
16
cfg-if = { workspace = true }
17
anyhow = { workspace = true }
18
19
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
20
workspace = true
21
features = [
22
"Win32_Foundation",
23
"Win32_System_Threading",
24
"Win32_System_Diagnostics_Debug",
25
]
26
27
[target.'cfg(any(target_os = "linux", target_vendor = "apple", target_os = "freebsd", target_os = "android"))'.dependencies]
28
libc = { workspace = true }
29
30
[features]
31
# Most modern CPUs are SMP (multicore). However, when only one core is present,
32
# some aspects of coherence are much cheaper. For example, RISC-V can use
33
# one instruction `fence.i` rather than a syscall that invokes all other cores.
34
# This feature enables such optimizations, but the resulting program will *only*
35
# be safe to run on one-core systems.
36
one-core = []
37
38