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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement wasmer init and wasmer publish #3324

Merged
merged 91 commits into from Dec 16, 2022
Merged
Show file tree
Hide file tree
Changes from 49 commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
0dfa9a8
Add wasmer init
fschutt Nov 18, 2022
41a311d
Fix wapm.toml definition
fschutt Nov 18, 2022
e2126b5
Detect cargo wapm and add metadata to Cargo.toml, if applicable
fschutt Nov 18, 2022
248b2f2
Fix make lint
fschutt Nov 18, 2022
73c6387
Fix wapm init compilation
fschutt Nov 21, 2022
a29cc7d
wasmer init: migrate to cargo_metadata
fschutt Nov 21, 2022
507b4f1
Correctly recognize .wai bindings
fschutt Nov 21, 2022
bb3de1f
cargo fmt
fschutt Nov 21, 2022
83a4334
cargo update
fschutt Nov 21, 2022
e69ea73
Update wapm toml version
fschutt Nov 21, 2022
53a08b4
Update wapm-toml version again
fschutt Nov 21, 2022
c4e1422
Refactor wasmer init with comments
fschutt Nov 21, 2022
7ba13bc
Fix make lint
fschutt Nov 24, 2022
b8d1d4e
Add integration tests for wasmer init
fschutt Nov 24, 2022
1c754a0
Fix second integration test for wasmer init
fschutt Nov 24, 2022
ac9d392
Fix relative path in source of module
fschutt Nov 24, 2022
2b09fc4
Add flow test for wasmer init + cargo wapm publish
fschutt Nov 24, 2022
c325ce6
Use current logged in user as namespace in wasmer init
fschutt Nov 24, 2022
3eaa585
Add debugging to integration test
fschutt Nov 24, 2022
6ac97af
Update wapm version in Makefile
fschutt Nov 24, 2022
9a4d21b
Install wapm before running integration tests
fschutt Nov 24, 2022
589dd1b
Add login for cargo init tests
fschutt Nov 24, 2022
faf1852
Remove wrong argument from cargo wapm
fschutt Nov 25, 2022
6892965
wapm.toml -> wasmer.toml
fschutt Dec 2, 2022
7fb5ad7
Debug why package.metadata.wapm has the wrong format
fschutt Dec 2, 2022
2dec532
Fix unit tests
fschutt Dec 2, 2022
b993321
Add wasmer publish command
fschutt Nov 18, 2022
874cb75
Add uploading function to wasmer-registry
fschutt Nov 18, 2022
a462bc8
Fix merge errors
fschutt Dec 2, 2022
364d1a4
Port wapm publish to wasmer publish
fschutt Dec 3, 2022
445e938
Debug cargo wapm integration not working
fschutt Dec 6, 2022
3c66829
Finish wasmer publish & verify it to work manually
fschutt Dec 12, 2022
20428fc
Fix error: metadata.package -> package.metadata
fschutt Dec 12, 2022
6032348
Fix merge issues
fschutt Dec 12, 2022
4510210
Add integration test for wasmer publish
fschutt Dec 12, 2022
9000d79
Add pretty_assertions to integration test deps
fschutt Dec 12, 2022
5e1ee45
Upgrade to time v3
fschutt Dec 12, 2022
eb3a217
Fix registry code for wasmer.toml
fschutt Dec 12, 2022
f6abf51
Merge branch 'master' into init
fschutt Dec 12, 2022
ba5004a
Add description to test-wasmer-init
fschutt Dec 12, 2022
88172d8
Fix Makefile
fschutt Dec 12, 2022
fb6ab13
Add target wasm32-wasi
fschutt Dec 12, 2022
eb0799a
source wapm in bash
fschutt Dec 12, 2022
0e3ef9e
Remove cargo wapm test (tested manually)
fschutt Dec 12, 2022
60bb150
Add integration test to make sure that wasmer init + publish works
fschutt Dec 13, 2022
a74231b
Merge branch 'master' into init
fschutt Dec 13, 2022
e4cd6e8
Fix make lint
fschutt Dec 13, 2022
050324b
Only run wasmer_init_publish in the CI
fschutt Dec 13, 2022
41a54b6
Add validation when publishing + checking the publishing username
fschutt Dec 13, 2022
9553c50
Fix integration tests
fschutt Dec 13, 2022
7c8607f
Use rust-toolchain
fschutt Dec 14, 2022
2c7ee61
Remove name = "..." on CLI options
fschutt Dec 14, 2022
ddeb9f7
Fix migration number selection
fschutt Dec 14, 2022
c796766
Fix typo
fschutt Dec 14, 2022
9bb8eef
Use crate-type group
fschutt Dec 14, 2022
912b140
Use anyhow::bail
fschutt Dec 14, 2022
3c099b7
Show file name in error message
fschutt Dec 14, 2022
590afd1
Use wai 0.2.0
fschutt Dec 14, 2022
359f91d
Refactor parsing Cargo.toml in wasmer init
fschutt Dec 14, 2022
443ed12
Simplify get_dependencies
fschutt Dec 14, 2022
a91a9ab
Use Template with clap(ValueEnum)
fschutt Dec 14, 2022
61032c1
Fix merge errors
fschutt Dec 14, 2022
5e800f3
Refactor functions
fschutt Dec 14, 2022
1636ca3
Refactor add_to_toml step
fschutt Dec 14, 2022
27aec54
Add log::warn when appending paths to .tar.gz on publish fails
fschutt Dec 14, 2022
e1ddf53
Add log::warn
fschutt Dec 14, 2022
5b3eb42
Factor constructing .tar.gz into separate functions
fschutt Dec 14, 2022
0960634
Fix append_path_to_tar_gz function
fschutt Dec 14, 2022
d1dd009
wasmer-registry: add PackageName::parse
fschutt Dec 14, 2022
7a0a515
Add proper check to test whether publishing under a namespace will work
fschutt Dec 14, 2022
80c05e9
Do not publish if namespace = "_"
fschutt Dec 14, 2022
3da744b
Mark template as a value_enum
Michael-F-Bryan Dec 15, 2022
a45af93
Make sure we only add "\r" characters on Windows
Michael-F-Bryan Dec 15, 2022
8788dac
Mention the filename when a fs operation fails
Michael-F-Bryan Dec 15, 2022
716ad9b
Remove wasmer-wasi setup from Makefile
fschutt Dec 15, 2022
88ee645
Fix copy-paste bug
fschutt Dec 15, 2022
de9cefe
Rework namespace formatting
fschutt Dec 15, 2022
a2b3950
Fix make lint
fschutt Dec 15, 2022
d831909
Output warning on multiple .wit / .wai files
fschutt Dec 15, 2022
c31587c
Remove code to check for user / namespace consistency
fschutt Dec 15, 2022
671e1bc
Fix make lint
fschutt Dec 15, 2022
1727d15
Remove cargo wapm code
fschutt Dec 16, 2022
f9a70c5
Avoid packagename/packagename when running wasmer init
fschutt Dec 16, 2022
ee3902f
Do not add a namespace when user is not logged in
fschutt Dec 16, 2022
c196670
Add check to validate the package name
fschutt Dec 16, 2022
ad5b9f2
Fix --package-name on wasmer init
fschutt Dec 16, 2022
5d3b0d4
Merge branch 'master' into init
fschutt Dec 16, 2022
d1093ca
Fix make lint
fschutt Dec 16, 2022
a4a997c
Fix wasmer-wasm-interface version
fschutt Dec 16, 2022
00aab24
Revert rust-toolchain changes
fschutt Dec 16, 2022
5f01e9d
Re-add wasm32-wasi for integration tests
fschutt Dec 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -12,6 +12,7 @@ api-docs-repo/
/src/windows-installer/WasmerInstaller.exe
/lib/c-api/wasmer.h
.xwin-cache
wapm.toml
# Generated by tests on Android
/avd
/core
Expand Down