Skip to content

Commit aca632e

Browse files
committed
refactor: move math ops to new crate and add platform crate
1 parent e6ea5f8 commit aca632e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3355
-1815
lines changed

.bazelignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.bazelrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

Cargo.lock

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,47 @@ members = [
1010
"wrt-types",
1111
"wrt-decoder",
1212
"wrt-component",
13+
"wrt-math",
1314
"wrt-host",
1415
"wrt-logging",
1516
"wrt-runtime",
1617
"wrt-instructions",
1718
"wrt-intercept", "test-control-instructions",
1819
"wrt-verification-tool",
1920
"wrt-test-registry",
21+
"wrt-platform",
2022
]
2123
resolver = "2" # Use edition 2021 resolver
2224

2325
[workspace.package]
24-
version = "0.2.0"
26+
authors = ["The WRT Project Developers"]
2527
edition = "2021"
26-
rust-version = "1.86.0"
2728
license = "MIT"
29+
repository = "placeholder/repo.git" # TODO: Replace with actual repo URL
30+
version = "0.2.0" # Updated to 0.2.0 for consistency
2831

2932
[workspace.dependencies]
3033
anyhow = "1.0"
3134
wit-bindgen = "0.41.0"
3235
dagger-sdk = { version = "0.18.6", features = ["codegen"] }
3336

3437
# Internal crate versions
35-
wrt = { path = "wrt", version = "0.2.0" }
36-
wrt-error = { path = "wrt-error", version = "0.2.0" }
37-
wrt-sync = { path = "wrt-sync", version = "0.2.0" }
38-
wrt-format = { path = "wrt-format", version = "0.2.0" }
39-
wrt-types = { path = "wrt-types", version = "0.2.0" }
40-
wrt-decoder = { path = "wrt-decoder", version = "0.2.0" }
41-
wrt-runtime = { path = "wrt-runtime", version = "0.2.0" }
42-
wrt-logging = { path = "wrt-logging", version = "0.2.0" }
43-
wrt-instructions = { path = "wrt-instructions", version = "0.2.0" }
44-
wrt-component = { path = "wrt-component", version = "0.2.0" }
45-
wrt-host = { path = "wrt-host", version = "0.2.0" }
46-
wrt-intercept = { path = "wrt-intercept", version = "0.2.0" }
47-
wrt-test-registry = { path = "wrt-test-registry", version = "0.2.0" }
38+
wrt = { path = "wrt", workspace = true }
39+
wrt-error = { path = "wrt-error", workspace = true }
40+
wrt-sync = { path = "wrt-sync", workspace = true }
41+
wrt-format = { path = "wrt-format", workspace = true }
42+
wrt-types = { path = "wrt-types", workspace = true }
43+
wrt-decoder = { path = "wrt-decoder", workspace = true }
44+
wrt-runtime = { path = "wrt-runtime", workspace = true }
45+
wrt-logging = { path = "wrt-logging", workspace = true }
46+
wrt-instructions = { path = "wrt-instructions", workspace = true }
47+
wrt-component = { path = "wrt-component", workspace = true }
48+
wrt-host = { path = "wrt-host", workspace = true }
49+
wrt-intercept = { path = "wrt-intercept", workspace = true }
50+
wrt-test-registry = { path = "wrt-test-registry", workspace = true }
51+
wrt-math = { path = "wrt-math", workspace = true }
52+
wrt-platform = { path = "wrt-platform", workspace = true }
53+
wrt-verification-tool = { path = "wrt-verification-tool", workspace = true }
4854

4955
[workspace.lints.rust]
5056
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(test)'] }

wrt-component/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ version.workspace = true
44
edition.workspace = true
55
description = "WebAssembly Component Model support for WRT"
66
license.workspace = true
7-
repository = "https://github.com/avrabe/wrt"
7+
repository.workspace = true
88
documentation = "https://docs.rs/wrt-component"
99
keywords = ["wasm", "webassembly", "runtime", "component-model"]
1010
categories = ["wasm", "no-std"]
1111

1212
[dependencies]
13-
wrt-error = { path = "../wrt-error", version = "0.2.0" }
14-
wrt-format = { path = "../wrt-format", version = "0.2.0" }
15-
wrt-host = { path = "../wrt-host", version = "0.2.0" }
16-
wrt-types = { path = "../wrt-types", version = "0.2.0" }
17-
wrt-intercept = { path = "../wrt-intercept", version = "0.2.0" }
18-
wrt-decoder = { path = "../wrt-decoder", version = "0.2.0" }
19-
wrt-runtime = { path = "../wrt-runtime", version = "0.2.0" }
13+
wrt-error = { path = "../wrt-error", workspace = true }
14+
wrt-format = { path = "../wrt-format", workspace = true }
15+
wrt-host = { path = "../wrt-host", workspace = true }
16+
wrt-types = { path = "../wrt-types", workspace = true }
17+
wrt-intercept = { path = "../wrt-intercept", workspace = true }
18+
wrt-decoder = { path = "../wrt-decoder", workspace = true }
19+
wrt-runtime = { path = "../wrt-runtime", workspace = true }
2020

2121
# No-std support
2222
alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" }

wrt-decoder/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ version.workspace = true
44
edition.workspace = true
55
description = "WebAssembly module decoder for wrt runtime"
66
license.workspace = true
7-
repository = "https://github.com/avrabe/wrt"
7+
repository.workspace = true
88
readme = "README.md"
99
keywords = ["wasm", "webassembly", "decoder", "parser", "runtime"]
1010
categories = ["wasm", "parsing", "no-std", "embedded"]
1111

1212
[dependencies]
1313
# Error handling
14-
wrt-error = { path = "../wrt-error", version = "0.2.0", default-features = false }
14+
wrt-error = { path = "../wrt-error", workspace = true, default-features = false }
1515
# Format handling
16-
wrt-format = { path = "../wrt-format", version = "0.2.0", default-features = false }
16+
wrt-format = { path = "../wrt-format", workspace = true, default-features = false }
1717
# Shared type definitions
18-
wrt-types = { path = "../wrt-types", version = "0.2.0", default-features = false }
18+
wrt-types = { path = "../wrt-types", workspace = true, default-features = false }
1919

2020
# Core dependencies
2121
log = { version = "0.4", optional = true }

wrt-decoder/src/wasm/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
// Re-export core module utilities
99
// Re-export module-related functions
1010
// Re-export with more convenient names
11-
pub use crate::module::decode_module_with_binary;
1211
// Additional alias for backwards compatibility
13-
pub use crate::module::decode_module_with_binary as decode;
1412
pub use crate::{
1513
decoder_core::validate::validate_module,
16-
module::{decode_module, encode_module, encode_module as encode},
14+
module::{
15+
decode_module, decode_module_with_binary as decode, decode_module_with_binary,
16+
encode_module, encode_module as encode,
17+
},
1718
name_section::*,
1819
};

wrt-error/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version.workspace = true
44
edition.workspace = true
55
license.workspace = true
66
description = "Error handling for the WebAssembly Runtime"
7-
repository = "https://github.com/avrabe/wrt"
7+
repository.workspace = true
88
readme = "../README.md"
99
keywords = ["webassembly", "wasm", "error", "no_std", "component-model"]
1010
categories = ["wasm", "no-std", "embedded"]

wrt-format/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ version.workspace = true
44
edition.workspace = true
55
description = "WebAssembly format handling for WRT"
66
license.workspace = true
7-
repository = "https://github.com/avrabe/wrt"
7+
repository.workspace = true
88
readme = "README.md"
99
keywords = ["wasm", "webassembly", "format", "binary", "no-std"]
1010
categories = ["wasm", "parsing", "data-structures", "no-std", "embedded"]
1111

1212
[dependencies]
13-
wrt-error = { path = "../wrt-error", version = "0.2.0", default-features = false }
14-
wrt-types = { path = "../wrt-types", version = "0.2.0", default-features = false }
13+
wrt-error = { path = "../wrt-error", workspace = true, default-features = false }
14+
wrt-types = { path = "../wrt-types", workspace = true, default-features = false }
1515

1616
[dev-dependencies]
1717
# For property testing

wrt-host/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ version.workspace = true
44
edition.workspace = true
55
description = "Host function infrastructure for the WebAssembly Runtime (WRT)"
66
license.workspace = true
7-
repository = "https://github.com/avrabe/wrt"
7+
repository.workspace = true
88
documentation = "https://docs.rs/wrt-host"
99
keywords = ["wasm", "webassembly", "runtime", "host", "component-model"]
1010
categories = ["wasm", "no-std"]
1111

1212
[dependencies]
13-
wrt-error = { path = "../wrt-error", version = "0.2.0", default-features = false }
14-
wrt-types = { path = "../wrt-types", version = "0.2.0", default-features = false }
15-
wrt-intercept = { path = "../wrt-intercept", version = "0.2.0", default-features = false }
16-
wrt-sync = { path = "../wrt-sync", version = "0.2.0", default-features = false }
13+
wrt-error = { path = "../wrt-error", workspace = true, default-features = false }
14+
wrt-types = { path = "../wrt-types", workspace = true, default-features = false }
15+
wrt-intercept = { path = "../wrt-intercept", workspace = true, default-features = false }
16+
wrt-sync = { path = "../wrt-sync", workspace = true, default-features = false }
1717

1818
# Std dependencies
1919
log = { version = "0.4", optional = true }

0 commit comments

Comments
 (0)