Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Reworked app manifest #95

Merged
merged 109 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
ce28aa5
WIP: use wit_encoder for removing imports
noise64 Oct 21, 2024
5619d5c
WIP: fixing add_dep tests
noise64 Oct 23, 2024
5829b44
cleanup
noise64 Oct 23, 2024
f8a456c
cleanup
noise64 Oct 23, 2024
6af16ef
WIP: temp fix for inlined circular imports
noise64 Oct 23, 2024
ca57b49
fmt
noise64 Oct 23, 2024
97c38db
import stubs
noise64 Oct 23, 2024
49340dd
import stubs test cleanups
noise64 Oct 23, 2024
c4161d3
cleanup
noise64 Oct 25, 2024
5727157
add test for using types with the same name from different interfaces
noise64 Oct 25, 2024
e460c47
add nested "reexport" case
noise64 Oct 25, 2024
5b41f50
fix naming
noise64 Oct 25, 2024
d7b1756
logging / cleanups
noise64 Oct 25, 2024
468177f
even more reexport example
noise64 Oct 25, 2024
64ea031
add missing hunk for package_id
noise64 Oct 25, 2024
becbaab
add missing hunk for package_id
noise64 Oct 26, 2024
50aebff
even more conflict for many exports
noise64 Oct 26, 2024
27cee9e
use latest (forked version) of wasm-tools and use PackageSourceMap in…
noise64 Oct 28, 2024
b347172
cleanups
noise64 Oct 28, 2024
cc169c2
cleanups
noise64 Oct 28, 2024
afb86cb
use wit_encode for wit generation
noise64 Oct 29, 2024
aeda02f
fix alias to alias, comments
noise64 Oct 29, 2024
0e9e51b
clippy
noise64 Oct 29, 2024
303b41f
extract StubConfig
noise64 Oct 30, 2024
ac7d5fa
remove conf param
noise64 Oct 30, 2024
1b85076
update add_dep test for StubConfig
noise64 Oct 30, 2024
7d05cba
drop package visitor, as it doesnt help much
noise64 Oct 30, 2024
7e7d392
more cleanups, extract EncodedWitDir
noise64 Oct 30, 2024
da4f522
delete test code
noise64 Oct 30, 2024
e815f64
add extract_main_interface_package
noise64 Oct 30, 2024
e06060b
rename
noise64 Oct 31, 2024
cb9a964
add comments for extract_main_interface_package
noise64 Oct 31, 2024
edf4c6f
checkpoint before dropping full compat: transform cleanups, move add_…
noise64 Oct 31, 2024
8f5eb9f
remove debug code
noise64 Oct 31, 2024
12adae2
use extracted interface packages and remove inlining, make overwritin…
noise64 Nov 5, 2024
06c6977
add option in StubDef::new to apply interface packages extract
noise64 Nov 5, 2024
4231fb8
cleanup leftover "auto" imports
noise64 Nov 5, 2024
79a9ed9
clippy, fmt
noise64 Nov 5, 2024
e3edd84
fix cargo gen / tests
noise64 Nov 5, 2024
576d274
separate input and output build for declarative build, add ResolvedWi…
noise64 Nov 7, 2024
d354910
cleanups
noise64 Nov 7, 2024
4f4a6fa
pre build cleanup
noise64 Nov 7, 2024
7eef138
cleanup / allow skip by content
noise64 Nov 11, 2024
81dfdfc
collect input deps by referenced, contained, component
noise64 Nov 11, 2024
4341ca4
fix test
noise64 Nov 11, 2024
405586c
pre-component-build: build by interface dep order and add interface deps
noise64 Nov 12, 2024
9713ad1
delete all stub targets
noise64 Nov 12, 2024
05717f9
WIP: package deps
noise64 Nov 12, 2024
6d6db5c
clippy, fmt
noise64 Nov 12, 2024
7446a48
clean: delete wasm input and output
noise64 Nov 12, 2024
8e530f9
declarative rust fixes
noise64 Nov 12, 2024
da9c62d
plug fix
noise64 Nov 12, 2024
5e8e794
move wit test data, add placeholder for dec app build integ tests
noise64 Nov 13, 2024
8f6a97b
leftover
noise64 Nov 13, 2024
f72eef7
move validation to src from model
noise64 Nov 14, 2024
de67dd0
add new type for ComponentName and cleanup LogColorize
noise64 Nov 14, 2024
2057f13
fs cleanups
noise64 Nov 14, 2024
938aec1
clippy
noise64 Nov 14, 2024
0ea09c7
cleanup
noise64 Nov 14, 2024
96db313
fs fixes and cleanups
noise64 Nov 14, 2024
951fa54
move to src from commands
noise64 Nov 14, 2024
438d81e
transitive resolve for package deps
noise64 Nov 14, 2024
bc57c34
fix test data path
noise64 Nov 14, 2024
7c5d0d4
transitive resolve for package deps for building base output wit dir
noise64 Nov 14, 2024
5d961b5
fix compose wasm read
noise64 Nov 14, 2024
1608023
error and logging fixes
noise64 Nov 14, 2024
e2b8e76
fix stub-wasm test
noise64 Nov 14, 2024
a2789df
log message
noise64 Nov 14, 2024
aa2ae4c
validate conflicting package names
noise64 Nov 14, 2024
d34b40c
cleanups
noise64 Nov 15, 2024
84e0280
mark generated dirs with a marker file
noise64 Nov 15, 2024
494af7c
error format
noise64 Nov 15, 2024
3d06694
clippy
noise64 Nov 15, 2024
7256838
log format
noise64 Nov 17, 2024
6b3f266
interface extraction: fix exporting / importing the same interface
noise64 Nov 18, 2024
d2a7114
use id for dep order building, collect loops properly
noise64 Nov 19, 2024
5696a32
highlight
noise64 Nov 19, 2024
f2d5313
clippy
noise64 Nov 19, 2024
0847d4c
build profiles and component templates
noise64 Nov 21, 2024
6181c51
WIP: reworking profiles
noise64 Nov 22, 2024
d63e6f0
cleanup
noise64 Nov 22, 2024
465e8c9
always choose profile, even if it is not matching the requested one
noise64 Nov 22, 2024
c4fe6eb
fix clean to support profiles
noise64 Nov 22, 2024
ab3a8b6
up-to-date coloring
noise64 Nov 22, 2024
44cadee
extract wasm component prop validation
noise64 Nov 22, 2024
51a2259
custom commands and clean targets
noise64 Nov 22, 2024
2e7f059
custom commands and clean targets
noise64 Nov 22, 2024
036ff1e
fix custom command listing
noise64 Nov 22, 2024
c6905cc
cleanup
noise64 Nov 22, 2024
523eb10
format
noise64 Nov 22, 2024
b0136c6
cleanup
noise64 Nov 22, 2024
8ef65e7
add new app manifest schema / delete leftover example
noise64 Nov 25, 2024
14470df
WIP: switching to new schema
noise64 Dec 1, 2024
e402e89
model cleanups
noise64 Dec 1, 2024
009622a
cleanups / fixes
noise64 Dec 1, 2024
07c97f3
fix regenerate_cargo_package_component
noise64 Dec 2, 2024
3ff0533
cleanups / offline mode
noise64 Dec 2, 2024
6d960a0
format / use official wasm-tools
noise64 Dec 3, 2024
ee5d22b
bump wac-graph
noise64 Dec 3, 2024
986771e
bump wac-graph, add missing lock
noise64 Dec 3, 2024
8a0a667
property extensions
noise64 Dec 3, 2024
d5cf6f7
pub ApplicationContext
noise64 Dec 3, 2024
019c497
component validation and extension conversion
noise64 Dec 3, 2024
60c28ed
cleanups
noise64 Dec 3, 2024
1bf1a58
add source to extensions convert
noise64 Dec 3, 2024
bec5871
clippy + expose app ctx new
noise64 Dec 3, 2024
ef6f855
expose app ctx fields
noise64 Dec 3, 2024
d8000ba
make app command optional, clippy, remove custom command "about" for now
noise64 Dec 3, 2024
28344b8
bump fallback version (workaround for branch dep)
noise64 Dec 3, 2024
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
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
run: cargo test --tests --package wasm-rpc-stubgen-tests-integration -- --test-threads=1 --format junit --logfile target/report.xml
- name: Build in stub mode
run: cargo component build -p golem-wasm-rpc --no-default-features --features stub
- name: Build stubgen without default features
run: cargo build -p golem-wasm-rpc-stubgen --no-default-features
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
Expand Down
85 changes: 68 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ lto = true
opt-level = 's'

[workspace.dependencies]
assert2 = "0.3.15"
fs_extra = "1.3.0"
golem-wasm-ast = "1.0.1"
tempfile = "3.12.0"
test-r = { version = "0.0.11", default-features = false }
test-r = { version = "0.0.13", default-features = false }
tokio = "1.38.0"
18 changes: 12 additions & 6 deletions wasm-rpc-stubgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ repository = "https://github.com/golemcloud/wasm-rpc"
description = "Golem WASM RPC stub generator"

[features]
unstable-dec-dep = []
default = ["app-command"]
app-command = []

[lib]
name = "golem_wasm_rpc_stubgen"
Expand All @@ -30,12 +31,12 @@ harness = false

[dependencies]
anyhow = "1.0.79"
assert2 = "0.3.15"
assert2 = { workspace = true }
cargo-component = "=0.13.2"
cargo-component-core = "=0.13.2"
cargo_toml = "0.20.2"
clap = { version = "4.5.7", features = ["derive"] }
colored = "2.1.0"
cargo-component-core = "=0.13.2"
cargo-component = "=0.13.2"
dir-diff = "0.3.3"
fs_extra = { workspace = true }
glob = "0.3.1"
Expand All @@ -44,23 +45,28 @@ golem-wasm-rpc = { path = "../wasm-rpc", version = "0.0.0" }
heck = "0.5.0"
id-arena = "2.2.1"
indexmap = "2.2.6"
indoc = "2.0.5"
itertools = "0.12.1"
minijinja = "2.5.0"
pretty_env_logger = "0.5.0"
prettyplease = "0.2.20"
proc-macro2 = "1.0.85"
quote = "1.0.36"
regex = "1.10.4"
semver = "1.0.23"
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.128"
serde_yaml = "0.9.33"
syn = "2.0.66"
tempfile = { workspace = true }
tokio = { workspace = true }
toml = "0.8.14"
wac-graph = "=0.6.1"
walkdir = "2.5.0"
wac-graph = "0.6.0"
wit-bindgen-rust = "=0.26.0"
wit-parser = "=0.219.0"
wit-encoder = "=0.221.2"
wit-parser = "=0.221.2"


[dev-dependencies]
test-r = { workspace = true }
30 changes: 0 additions & 30 deletions wasm-rpc-stubgen/example/deps/dep1/dep1.wit

This file was deleted.

5 changes: 0 additions & 5 deletions wasm-rpc-stubgen/example/deps/dep2/dep2.wit

This file was deleted.

Loading
Loading