c6ab1e5f56
feat: Partial support for unnamed packages
...
* Change PackageId to support both named and unnamed package
* Update the package resolver logic with unnamed package support
* Update the "package download" command
2024-04-09 22:31:26 +02:00
b4b18c650b
Various fixes detected in the build
2024-04-03 11:00:08 +11:00
b1689b825e
chore(wasix): Increase log level for WapmSource
...
Needed for debugging.
2024-01-25 04:23:42 +01:00
db73b08dc2
fix: Fixed some compilation errors introduced by #4204 that assume tokio::task::block_in_place()
always exists
2024-01-16 15:47:01 +08:00
e6622f1338
chore(wasix): Minor QueryError code cleanup
...
Use Self:: instead of QueryError::
2023-12-21 20:49:59 +01:00
a41d95f559
feat(wasix): Add QueryError::Timeout
2023-12-21 20:49:59 +01:00
4534485a7a
Fixed a WapmSource test
2023-12-21 13:00:53 +08:00
d6d800777e
fix: Always use the download URL provided by the Wasmer registry instead of going through the frontend redirect
2023-12-21 11:29:13 +08:00
46f934cf38
Removed an old std::fs::write()
that was left in while debugging
2023-11-28 16:44:35 +08:00
837977caba
Added a test
2023-11-23 21:45:52 +08:00
99417a24f8
fix: Always re-execute a registry query when cache lookups fail
2023-11-23 21:20:09 +08:00
2fec91a424
Fixed compilation errors and WapmSource tests
2023-11-21 18:03:13 +08:00
89e9de9f4e
Deleted the Authentication
abstraction and switched the BuiltinPackageLoader over to resolve tokens from the URL hostname
2023-11-21 18:03:12 +08:00
10d2b6846f
Fixed a silly refactoring bug
2023-11-21 18:03:12 +08:00
7728818397
Updated the WapmSource to accept a hard-coded token
2023-11-21 18:03:11 +08:00
83e2710eed
I was passing the Accept header instead of Content-Type
2023-11-21 18:03:11 +08:00
92a03992b7
Switch WapmSource over to using a package URL when downloading the webc file
2023-11-21 18:03:11 +08:00
68b59eac21
Wire up Authentication
to the WapmSource
2023-11-21 18:03:10 +08:00
94f27f81f6
Stability improvements ( #4204 )
...
* Fixed an issue where the socket address family was being corrupted due
to padding fields being incorrect used.
* Added a comment
* Faster compiles for debug by using release version of cranelift
* Added additional fixes for some missing parts of sockets
* Fixed a blocking issue inside an async and added sha256 caching of webc files
* Faster checksums for debug
* Removed error messages when a WASI instance shuts down and doing cleanups in parallel
* Reduced the logging level on WasiEnv cleanup code
* Fixed linter, wasi-web build, Windows build, the tests failling because of the lack of tockio multi threaded runtime and test-js
---------
Co-authored-by: ptitSeb <sebastien.chev@gmail.com >
2023-09-06 16:45:51 +02:00
bab9fa620f
Introduce a WebHttpClient
2023-08-17 20:36:47 +08:00
9eb0add7af
Fix for the unit test
2023-08-01 08:13:29 +10:00
af29895001
Fixed an issue where inheritance was inverted
2023-08-01 01:52:26 +10:00
d06b67c0d4
Updated the caching tests to be more robust and not have false-positives because it uses the global cache
2023-07-24 14:31:02 +08:00
0eec9aeda4
Make sure the caching test doesn't use the global $WASMER_DIR
2023-07-24 14:23:31 +08:00
3dbe13dfd6
Add WebcHash::parse_hex helper
...
Closes #4077
2023-07-18 15:27:44 +02:00
9ec90d61e8
fix(wasix): Expose FileSystemMapping struct
...
The FileSystemMapping struct used in package resolution code is not
currently public, preventing users from implementing the `Source` trait
outside of this crate.
This was overlooked during the initial merge of this feature.
2023-07-11 19:19:58 +02:00
155e529b18
Added a fallback to the resolver for packages that don't specify an entrypoint
2023-07-05 12:27:53 +08:00
dfde8405b5
Move all cached artefacts under the ~/.wasmer/cache/ directory
2023-06-21 22:05:15 +08:00
2def425f8b
Add proper error handling to the Source trait
2023-06-20 16:18:09 +08:00
e16952a2c4
Error out when the only versions matching a constraint are archived
2023-06-19 14:26:52 +08:00
7e40a93c54
Emit a log message when archived packages are skipped
2023-06-19 14:26:52 +08:00
51fda2554c
Ignoring archived package versions when querying the registry
2023-06-19 14:26:52 +08:00
aecb4282a6
Added some quick'n'dirty cache invalidation to "wasmer publish"
2023-06-16 21:52:04 +08:00
0c8220ce22
Make the WapmSource local cache timeout configurable
2023-06-16 21:52:04 +08:00
fe4978f458
Add filesystem caching for WAPM queries
2023-06-16 21:52:04 +08:00
5df78e2c99
Rename "multi_source_registry.rs"
2023-06-16 21:52:04 +08:00
05ddda648c
Instrument more functions with tracing
2023-06-16 21:52:03 +08:00
048c43a2c7
Renamed most appearances of Wapm to Wasmer ( #3991 )
...
Co-authored-by: ptitSeb <sebastien.chev@gmail.com >
2023-06-14 08:29:44 +00:00
47d031a39c
Made "make test-js" work again
2023-06-09 01:04:30 +08:00
683c039d5b
Most tests work again
2023-06-08 23:57:34 +08:00
d0bf95f2f6
Fixed a compile error in tests
2023-06-08 23:57:33 +08:00
683e47e363
Wired up the "original_path" field from FileSystemMapping
2023-06-08 23:57:33 +08:00
abb06311d6
Fixed the cycle error bug
2023-06-08 23:57:33 +08:00
7d999a9af0
Forgot to add edges
2023-06-08 23:57:32 +08:00
13239a32ac
Fixed up the PartialEq implementation for DependencyGraph
2023-06-08 23:57:32 +08:00
be897c8d49
Switched load_package_tree's over to using the filesystem annotations
2023-06-08 23:57:31 +08:00
584baaf9fd
Switched the dependency graph over to petgraph
2023-06-08 23:57:31 +08:00
75420682ec
Add filesystem mappings to the resolver
2023-06-08 23:57:30 +08:00
c23ed084ce
chore: Rename wasi dir to wasiX
...
Synchronise the crate name with the directory structure.
Also had to move the lib/wasix/wasix-http-client dir one layer up.
Closes #3785
2023-06-07 10:39:42 +02:00