Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnamed packages #4532

Merged
merged 99 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from 82 commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
1e17dfc
made pacakge name optional
ayys Apr 1, 2024
1e7a545
use host_path instead of original_path, make name optional
ayys Apr 2, 2024
db767e1
make webc hash required
ayys Apr 2, 2024
d5c8db2
decided to make hash field optional
ayys Apr 2, 2024
c6487b4
reverts hack that was in place because webc crate expected `atom` fs
ayys Apr 2, 2024
c06e2cb
wasmer can now run unnamed packages
ayys Apr 4, 2024
7429d6f
remove the parallel run code from makefile
ayys Apr 5, 2024
9aa352d
fix fs resolution on v3
maminrayej Apr 8, 2024
08d9f0d
support both v2 and v3 fs
maminrayej Apr 8, 2024
8171c07
use patches instead of using local paths
ayys Apr 9, 2024
4368155
feat(backend-api): Add get_package_release query and types
theduke Apr 9, 2024
f4b1f20
catch up to latest webc changes
maminrayej Apr 9, 2024
c6ab1e5
feat: Partial support for unnamed packages
theduke Apr 9, 2024
3a4b557
feat(backend-api): Add allPackageReleases query
theduke Apr 10, 2024
2de0fd1
Add a todo!() and fixme for fetching packages by hash
theduke Apr 10, 2024
51a6f46
feat: partial work on unnamed packages
xdoardo Apr 10, 2024
48e8424
Merge remote-tracking branch 'origin/master' into unnamed-packages
theduke Apr 10, 2024
4de4f39
More work on unnamed package resolution
theduke Apr 10, 2024
301651d
Implement hashed package fetching in the WapmSource
theduke Apr 10, 2024
947b4bd
Merge branch 'unnamed-packages' into package-specifier-ident
theduke Apr 10, 2024
d3f235f
Partially resolve compilation errors after merge
theduke Apr 10, 2024
5f7fe6d
More fixes...
theduke Apr 10, 2024
c43c114
More fixes for unnamed packages...
theduke Apr 10, 2024
e360b6d
Update backend api graphql schema again
theduke Apr 10, 2024
cdf8e27
Add webc_version to PackageDistribution
theduke Apr 10, 2024
5225bef
continue implementing support for unnamed packages
xdoardo Apr 10, 2024
3322c56
chore: Formatting + improve trace message
theduke Apr 10, 2024
49ee400
fix: Use correctly json name in graphql query
theduke Apr 10, 2024
348da30
Added webc version
syrusakbary Apr 10, 2024
3dcda00
continue work on unnamed packages
xdoardo Apr 10, 2024
8dd7227
Merge remote-tracking branch 'refs/remotes/origin/unnamed-packages' i…
xdoardo Apr 10, 2024
6f9b511
restore original package privacy logic
xdoardo Apr 10, 2024
1ed3040
continue work on unnamed packages
xdoardo Apr 11, 2024
4ee75ad
Import wasmer-toml package
theduke Apr 10, 2024
a3b1082
Refactor wasmer-toml crate
theduke Apr 10, 2024
044570b
Replace usage of wasmer-toml with wasmer-config
theduke Apr 16, 2024
97858b4
feat(config): Add AppConfigV1
theduke Apr 16, 2024
6417e2a
Restore virtual-fs::;webc_fs
theduke Apr 17, 2024
770bdd6
Improvements to PackageIdent and related types
theduke Apr 17, 2024
ac4d10f
Update wasmer-wasix with new wasmer-config types
theduke Apr 17, 2024
1060334
Merge remote-tracking branch 'origin/master' into unnamed-packages
theduke Apr 17, 2024
6eacaaa
chore: Remove unused imports
theduke Apr 17, 2024
79e9615
deploy flow dx
xdoardo Apr 19, 2024
7548937
fix: various
xdoardo Apr 19, 2024
c74aaad
[skip ci] continue dx
xdoardo Apr 20, 2024
6c06989
[skip ci] continue dx
xdoardo Apr 20, 2024
eb1531e
[skip ci] continue dx
xdoardo Apr 22, 2024
f473a88
[skip ci] use registry and token from CLI args
xdoardo Apr 22, 2024
419142a
[skip ci] fix registry & token use in deploy
xdoardo Apr 22, 2024
c9d1271
[skip ci] continue CLI dx
xdoardo Apr 22, 2024
15450d6
Add some helper methods
theduke Apr 22, 2024
4bade91
chore: Formatting
theduke Apr 22, 2024
6398bee
deps: Remove edge-schema patch
theduke Apr 22, 2024
f72807e
refactor: Replace edge-schema with wasmer-config types
theduke Apr 22, 2024
b52185f
fix(backend-api): Forward variables for getAllPackageReleases query
theduke Apr 22, 2024
48f38e4
backend-api: Some more fields
theduke Apr 22, 2024
45bd45b
chore: Remove leftover dbg!()
theduke Apr 22, 2024
82d248a
feat(backend-api): Add PackageWebc::webc_v3 field
theduke Apr 22, 2024
6bf1f08
fix: Allow combined webc v2 and v3 filesystems
theduke Apr 22, 2024
f18c2cd
fix: Fix detection of Windows paths in PackageSource parser
theduke Apr 22, 2024
dd7af63
[skip ci] continue dx
xdoardo Apr 22, 2024
2bf3e75
deps: webc upgrade + lift to workspace deps
theduke Apr 22, 2024
85c7552
Replace more edge_schema usage with wasmer_config
theduke Apr 23, 2024
32f5ee9
[skip ci] continue dx
xdoardo Apr 23, 2024
0c19597
Merge remote-tracking branch 'refs/remotes/origin/unnamed-packages' i…
xdoardo Apr 23, 2024
74bacbd
[skip ci] deploy hotfix
xdoardo Apr 23, 2024
6e844b2
[skip ci] continue dx
xdoardo Apr 23, 2024
2da7b18
[skip ci] ...own this package -> ...own this app
xdoardo Apr 23, 2024
3efdc24
[skip ci] change deploying message
xdoardo Apr 23, 2024
a83295e
[skip ci] continue dx
xdoardo Apr 24, 2024
00ccb44
[skip ci] continue dx
xdoardo Apr 24, 2024
f63b588
Merge remote-tracking branch 'origin/master' into unnamed-packages
theduke Apr 24, 2024
e434923
chore: Remove duplicate `lib/config` in Cargo.toml
theduke Apr 24, 2024
4b66cee
chore: Organize workspace.dependencies in root Cargo.toml
theduke Apr 24, 2024
502d7ae
[skip ci] Remove hack for manifest version
xdoardo Apr 24, 2024
fd3774c
[skip ci] remove mut and fix compiler error
xdoardo Apr 24, 2024
98a5499
Merge remote-tracking branch 'refs/remotes/origin/unnamed-packages' i…
xdoardo Apr 24, 2024
8bb6915
[skip ci] use `preserve_order` feature in toml
xdoardo Apr 24, 2024
f4a9624
chore: Remove stray .github dir left over from crate import
theduke Apr 24, 2024
62f0c2c
[skip ci] Fix for tests + bump serde_yaml and indexmap
xdoardo Apr 24, 2024
47ba3da
Merge remote-tracking branch 'refs/remotes/origin/unnamed-packages' i…
xdoardo Apr 24, 2024
1125fe5
remove blocking feature from reqwest dependency
maminrayej Apr 24, 2024
ff0dc50
fix linting
maminrayej Apr 24, 2024
01e9f59
fix filesystem test failure
maminrayej Apr 24, 2024
cf4f322
[skip ci] Fix CLI tests, resolve review comments
xdoardo Apr 24, 2024
3a83d9c
Merge remote-tracking branch 'refs/remotes/origin/unnamed-packages' i…
xdoardo Apr 24, 2024
1a3a652
Improved prompting
syrusakbary Apr 24, 2024
14b7490
Merge branch 'unnamed-packages' of github.com:wasmerio/wasmer into un…
syrusakbary Apr 24, 2024
af17754
Improved Confirm dialog theme
syrusakbary Apr 24, 2024
d8e4f0b
Various fixes
syrusakbary Apr 24, 2024
28ec67a
Fixed linting
syrusakbary Apr 24, 2024
26ef643
Small fixes
syrusakbary Apr 24, 2024
aa315ca
Small fix
syrusakbary Apr 24, 2024
3202c94
Fix publish
syrusakbary Apr 24, 2024
6c5e066
Make stage 1 tests pass
syrusakbary Apr 24, 2024
9f055ba
ignore python merge test
maminrayej Apr 24, 2024
99eeb65
Fetch app name from directory
syrusakbary Apr 24, 2024
5ec6d3d
disable tests that rely on backend
maminrayej Apr 24, 2024
fad87e2
Fix tests
syrusakbary Apr 24, 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
111 changes: 83 additions & 28 deletions Cargo.lock

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

17 changes: 12 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,23 @@ rust-version = "1.73"
version = "4.2.8"

[workspace.dependencies]
# Repo-local crates
wasmer-config = { path = "./lib/config" }

# Wasmer-owned crates
webc = { version = "6.0.0-alpha3", default-features = false, features = ["package"] }
edge-schema = { version = "=0.1.0" }
shared-buffer = "0.1.4"

# Third-party crates
enumset = "1.1.0"
memoffset = "0.9.0"
wasmer-toml = "0.9.2"
wasmparser = { version = "0.121.0", default-features = false }
webc = { version = "5.8.0", default-features = false, features = ["package"] }
shared-buffer = "0.1.4"
rkyv = { version = "0.7.40", features = ["indexmap", "validation", "strict"] }
memmap2 = { version = "0.6.2" }
edge-schema = { version = "=0.1.0" }
indexmap = "1"
toml = {version = "0.5.9", features = ["preserve_order"]}
indexmap = "2"
serde_yaml = "0.9.34"

[build-dependencies]
test-generator = { path = "tests/lib/test-generator" }
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ check-capi:
RUSTFLAGS="${RUSTFLAGS}" $(CARGO_BINARY) check $(CARGO_TARGET_FLAG) --manifest-path lib/c-api/Cargo.toml \
--no-default-features --features wat,compiler,wasi,middlewares $(capi_compiler_features)


build-wasmer:
$(CARGO_BINARY) build $(CARGO_TARGET_FLAG) --release --manifest-path lib/cli/Cargo.toml $(compiler_features) --bin wasmer --locked

Expand Down
2 changes: 1 addition & 1 deletion lib/api/tests/function_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn data_and_store_mut() -> Result<(), String> {
);
let mut envmut = env.into_mut(&mut store);

let (mut data, mut storemut) = envmut.data_and_store_mut();
let (data, mut storemut) = envmut.data_and_store_mut();

assert_eq!(
data.global.ty(&storemut),
Expand Down
3 changes: 2 additions & 1 deletion lib/backend-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ rust-version.workspace = true
[dependencies]
# Wasmer dependencies.
edge-schema.workspace = true
webc = "5"
wasmer-config.workspace = true
webc.workspace = true

# crates.io dependencies.
anyhow = "1"
Expand Down
Loading
Loading