Skip to content

Commit 2705320

Browse files
authored
Merge pull request #63 from peterhuene/api
Implement a composition graph library.
2 parents 7b2f728 + 1722f28 commit 2705320

84 files changed

Lines changed: 7537 additions & 359 deletions

File tree

Some content is hidden

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

Cargo.lock

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

Cargo.toml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,26 @@ registry = ["wac-resolver/registry", "indicatif"]
4747
[workspace.dependencies]
4848
wac-parser = { path = "crates/wac-parser", default-features = false }
4949
wac-resolver = { path = "crates/wac-resolver", default-features = false }
50-
wit-parser = "0.201.0"
51-
wasmparser = "0.201.0"
52-
wit-component = "0.201.0"
53-
wasm-encoder = "0.201.0"
54-
wasmprinter = "0.201.0"
55-
wasm-metadata = "0.201.0"
50+
wac-graph = { path = "crates/wac-graph" }
51+
wac-types = { path = "crates/wac-types" }
52+
wit-parser = "0.202.0"
53+
wasmparser = "0.202.0"
54+
wit-component = "0.202.0"
55+
wasm-encoder = "0.202.0"
56+
wasmprinter = "0.202.0"
57+
wasm-metadata = "0.202.0"
5658
anyhow = "1.0.81"
57-
clap = { version = "4.5.2", features = ["derive"] }
59+
clap = { version = "4.5.4", features = ["derive"] }
5860
semver = { version = "1.0.22", features = ["serde"] }
5961
pretty_env_logger = "0.5.0"
6062
log = "0.4.21"
61-
tokio = { version = "1.36.0", default-features = false, features = ["macros", "rt-multi-thread"] }
63+
tokio = { version = "1.37.0", default-features = false, features = ["macros", "rt-multi-thread"] }
6264
owo-colors = { version = "4.0.0", features = ["supports-colors"] }
63-
indexmap = { version = "2.2.5", features = ["serde"] }
65+
indexmap = { version = "2.2.6", features = ["serde"] }
6466
id-arena = "2.2.1"
6567
serde = { version = "1.0.197", features = ["derive"] }
66-
serde_json = "1.0.114"
67-
wat = "1.201.0"
68+
serde_json = "1.0.115"
69+
wat = "1.202.0"
6870
logos = "0.14.0"
6971
miette = "7.2.0"
7072
thiserror = "1.0.58"
@@ -77,3 +79,4 @@ secrecy = "0.8.0"
7779
futures = "0.3.30"
7880
indicatif = "0.17.8"
7981
pretty_assertions = "1.4.0"
82+
petgraph = "0.6.4"

LANGUAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ type ::= u8
498498
| s32
499499
| u64
500500
| s64
501-
| float32
502-
| float64
501+
| f32
502+
| f64
503503
| char
504504
| bool
505505
| string

crates/wac-graph/Cargo.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[package]
2+
name = "wac-graph"
3+
description = "A library for defining, encoding, and decoding WebAssembly composition graphs."
4+
version = { workspace = true }
5+
edition = { workspace = true }
6+
authors = { workspace = true }
7+
license = { workspace = true }
8+
categories = { workspace = true }
9+
keywords = { workspace = true }
10+
repository = { workspace = true }
11+
12+
[dependencies]
13+
wac-types = { workspace = true }
14+
id-arena = { workspace = true }
15+
anyhow = { workspace = true }
16+
thiserror = { workspace = true }
17+
petgraph = { workspace = true }
18+
indexmap = { workspace = true }
19+
wasmparser = { workspace = true }
20+
semver = { workspace = true }
21+
serde = { workspace = true, optional = true }
22+
wasm-encoder = { workspace = true }
23+
log = { workspace = true }
24+
25+
[dev-dependencies]
26+
pretty_assertions = { workspace = true }
27+
wasmprinter = { workspace = true }
28+
wat = { workspace = true }
29+
serde = { workspace = true }
30+
serde_json = { workspace = true }
31+
32+
[features]
33+
serde = ["dep:serde", "wac-types/serde"]

0 commit comments

Comments
 (0)