Commit Graph

130 Commits

Author SHA1 Message Date
Sashanoraa
b5cf325c5a Make VeilidAPI::parse_as_target a sync function
VeilidAPI::parse_as_target doesn't perform any async operations so it
should be a sync function.
2024-03-30 10:40:29 -04:00
TC Johnson
9d3ee579d3 Version update: v0.2.5 → v0.3.0 2024-03-27 21:11:00 -05:00
Christien Rioux
800348451e improve route selection and add generate_shared_secret 2024-03-27 17:53:51 -05:00
Christien Rioux
3970b6f294 fix flutter/dart wasm 2024-03-27 17:53:51 -05:00
Christien Rioux
6a8c0830d2 flutter unit/integration tests 2024-03-27 17:53:51 -05:00
Christien Rioux
d586748333 add inspect test to wasm 2024-03-27 17:53:51 -05:00
Christien Rioux
ee54358c27 wasm unit tests work and attachment manager fix 2024-03-27 17:53:51 -05:00
Christien Rioux
ff28273a59 wasm support for inspect and watchvalue
(needs tests)
2024-03-27 17:53:51 -05:00
Christien Rioux
6455aff14a make change_log_ignore a thing 2024-03-27 17:53:51 -05:00
Christien Rioux
8818e63dc0 add default veilid config to the api 2024-03-27 17:53:50 -05:00
Christien Rioux
ad45660db9 fix tests 2024-03-27 17:53:50 -05:00
Christien Rioux
ef6ecdab79 logging improvements 2024-03-27 17:53:50 -05:00
Christien Rioux
0c3271b3b9 add writer to set_dht_value, allow multiple open_dht_record 2024-03-27 17:53:50 -05:00
John Smith
d454f9fdf9 update deps 2024-01-19 13:55:35 -05:00
John Smith
9c0c7cf0b2 config oops 2024-01-19 13:53:43 -05:00
Christien Rioux
70e256a25a checkpoint 2024-01-19 13:53:42 -05:00
Kyle H
af27b5aa85 Change 'whitelist' to 'allowlist' globally. 2023-11-23 14:49:45 +00:00
TC Johnson
dcd4c0d22a
Version update: v0.2.4 -> v0.2.5
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
2023-11-06 20:51:41 -06:00
Christien Rioux
ee375ad430 safety by default 2023-11-05 18:38:05 -05:00
TC
502d08eda3 Merge branch 'earthly-caching-2' into 'main'
Refactored Earthfile to improve caching

See merge request veilid/veilid!232
2023-11-03 01:17:14 +00:00
Δ ǀ Ξ ȼ
d38f3cb42f
Refactored Earthfile to improve caching
Targets have been parallelized so that initial push of the container cache should build the whole build a little quicker, plus the container should now use the cache for more of the build and so speed up normal builds to just the compilation and test of the code that has changed

The `build_cache` target now builds a `build-cache:latest` container that is stored in the GitLab project Container Registry, and then used (if it exists) by the `test_build` target.  The `build_cache` task runs under 3 conditions, 1. the container does not exist, 2. if scheduled, 3. if run manually from the Pipelines page in the GitLab interface.

It is recommended that the build is set up to run on a weekly schedule via the `Pipeline schedules` page in GitLab with the schedule of `0 2 * * 6`.
2023-10-31 11:17:13 +00:00
Christien Rioux
97be49a9a7 clean up handling of errors in route spec store 2023-10-20 22:39:09 -04:00
TC Johnson
cc5cb8a8b0
Version update: v0.2.3 → v0.2.4 2023-10-15 12:24:59 -05:00
Christien Rioux
b2442363cc npm audit fix 2023-10-14 20:57:08 -04:00
Christien Rioux
e40975104e wasm fixes 2023-10-14 20:18:37 -04:00
Haley Weslin
1587633064 Fix "bytes afer" comment typo veilid_crypto_js.rs
This fixes a typo of "bytes afer" for "bytes after" in a comment
in veilid-wasm/src/veilid_crypto_js.rs.
2023-10-14 17:27:31 +00:00
Christien Rioux
bb78723ce8 Merge branch 'clarify-wasm-limitations' into 'main'
Clarify that WASM bootstrap uses ws, not wss or DNS

See merge request veilid/veilid!205
2023-10-07 19:16:00 +00:00
Christien Rioux
0464b92f3d Merge branch 'firefox_snap' into 'main'
allow testing with Firefox snap

See merge request veilid/veilid!210
2023-10-07 19:10:11 +00:00
Mike Phipps
2dbd793878 The wasm_build.sh script is now more resilient to failures in finding llvm-dwarfdump 2023-10-01 15:57:58 -04:00
Derrick Oswald
15e4b75986 allow testing with Firefox snap
The snap version of Firefox cannot write to the /tmp location.
Recommended workaround is to set TMPDIR environment variable to location that both geckodriver and firefox can write to e.g. $HOME/tmp.
See https://github.com/mozilla/geckodriver/releases/tag/v0.31.0 and https://github.com/mozilla/geckodriver/issues/2010

This change adds the TMPDIR environment to allow testing with the Snap version of Firefox.
The downside is a possibly orphan directory (~/tmp) containing geckodriver and v8-compile-cache-1000.
2023-09-29 10:33:04 +02:00
Rivka Segan
7c0a06b630 Clarify that WASM bootstrap uses ws, not wss or DNS
This fixes the logic error of "bootstrapping via TXT record also will
work."

This also adds a clarification that, because DNS is unavailable, the
only option today is ws:// (Veilid currently does not allow wss://
with an IP address. Specifically, try_wss will fail with
apibail_parse_error! and then RPCError::map_protocol.) This
clarification saves time for any users who would otherwise be tempted
to get a certificate for an IP address (at least one free Certificate
Authority supports this, and the resulting certificate can be added
to a veilid-server configuration.)

try_wss failure:
bd4b4233bf/veilid-core/src/network_manager/types/dial_info/mod.rs (L199-L202)
bd4b4233bf/veilid-core/src/rpc_processor/coders/dial_info.rs (L52-L56)

see also:
bd4b4233bf/veilid-core/src/network_manager/types/dial_info/mod.rs (L58-L59)

In addition, several spelling errors are fixed.
2023-09-27 05:46:22 +00:00
Brandon Vandegrift
1af71e7154 (wasm) re-export helpful length constants 2023-09-24 14:47:22 -04:00
Brandon Vandegrift
80afa19678 (wasm) Treat arbitrary byte data as Uint8Array, instead of base64url marshalling. 2023-09-20 00:46:45 -04:00
Christien Rioux
a7b073cddb Merge branch 'feature/wasm-tests' into 'main'
(wasm) webdriver-based tests for JS/TS apis

See merge request veilid/veilid!175
2023-09-19 01:03:08 +00:00
Christien Rioux
563b80e31c Merge branch 'clippy-fixes' into 'main'
Clippy fixes

See merge request veilid/veilid!195
2023-09-19 00:43:41 +00:00
Christien Rioux
20451af880 more clippy 2023-09-18 19:49:57 -04:00
Christien Rioux
6438a64fc7 clippy work 2023-09-17 19:37:02 -04:00
Brandon Vandegrift
40a1c9933c (wasm) webdriver-based tests for JS/TS apis, update README 2023-09-17 18:17:24 -04:00
TC Johnson
fa13f95a10
Version update: v0.2.2 → v0.2.3
- Security fix for WS denial of service
- Support for latest Rust 1.72
2023-09-17 13:21:57 -05:00
John Smith
d60c296303 cargo upgrades 2023-09-16 21:56:19 -04:00
TC Johnson
06c0abead8
Version update: v0.2.1 → v0.2.2 2023-09-16 17:32:16 -05:00
Christien Rioux
960a4cb964 Revert "version bump fix"
This reverts commit 2d291b86b6.
2023-09-16 16:51:59 -04:00
Christien Rioux
ba72aa9dd3 version bump fix 2023-09-16 16:51:59 -04:00
Christien Rioux
ad47e400ed build fixes 2023-09-16 16:51:58 -04:00
Brandon Vandegrift
ac8bbe9a83 Replace .unwrap() with ? operator 2023-09-12 08:06:49 -04:00
Brandon Vandegrift
c2c607efac (wasm) Better TS types for serialized structs, RoutingContext++, more crypto fns 2023-09-11 18:42:05 -04:00
Brandon Vandegrift
5aeda006a4 (wasm) basic working unit tests 2023-09-04 22:13:58 -04:00
Brandon Vandegrift
6b7301a963 (wasm) Improved memory management, track by struct so drop works, use --weak-ref for wasm-bindgen 2023-09-04 17:34:49 -04:00
Brandon Vandegrift
93963e9d08 (wasm) Cleanup and refactoring, add TableDB transactions, copy over docs for JSDoc. 2023-09-04 14:04:57 -04:00
Brandon Vandegrift
ca11f6075d (wasm) Add VeilidCrypto class, refine interfaces for VeilidRoutingContext 2023-09-03 23:27:20 -04:00