Commit Graph

1625 Commits

Author SHA1 Message Date
Christien Rioux
6de2432c53 flutter 3.19 upgrade 2024-03-27 17:53:50 -05:00
Christien Rioux
09cde39f97 fix name 2024-03-27 17:53:50 -05:00
Christien Rioux
929cddad88 always display crash backtrace 2024-03-27 17:53:50 -05:00
Christien Rioux
995a794ea3 add union/intersection for ValueSubkeyRange lists, and some tests 2024-03-27 17:53:50 -05:00
Christien Rioux
d244c1f6a5 fix overzealous gitignore and organize flutter a bit 2024-03-27 17:53:50 -05:00
Christien Rioux
019cb5fd79 preserve watches 2024-03-27 17:53:50 -05:00
John Smith
14dc402356 fix python test 2024-03-27 17:53:50 -05:00
Christien Rioux
1cacc547e0 python work and network keying work 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
Christien Rioux
fac9937cf4 update generated code 2024-03-27 17:53:50 -05:00
Christien Rioux
a281f09d82 fix assert 2024-03-27 17:53:50 -05:00
Christien Rioux
2156449486 fix missing address range for local 2024-03-27 17:53:50 -05:00
Christien Rioux
34a861aa69 checkpoint 2024-03-27 17:53:50 -05:00
Christien Rioux
9b04fb1e4b debug 2024-03-27 17:53:50 -05:00
Christien Rioux
40288f41ba config fixes 2024-03-27 17:53:50 -05:00
Christien Rioux
1c13ca81ea rename 2024-03-27 17:53:50 -05:00
Christien Rioux
a32774a29c remove operation for dart VeilidSubkeyRange and List<> 2024-03-27 17:53:50 -05:00
TC
d74dad3ec9 Merge branch 'systemd-hardening' into 'main'
Some light hardening of veilid-server standalone node via systemd

See merge request veilid/veilid!187
2024-03-03 21:45:38 +00:00
TC
7431a5380a Added crates.io and Pypi release steps to build_repositories job. Maybe it works, maybe it doesn't. We'll find out at next release. 2024-03-03 21:19:21 +00:00
Christien Rioux
a8abe155a9 Merge branch 'openbsd' into 'main'
Inital import of openbsd support.

See merge request veilid/veilid!259
2024-02-23 19:27:17 +00:00
dsp
a957cde4a9 Inital import of openbsd support.
Provides the correct C representations for the data structures.
For now it has a lot of code dupplication with apple.rs. These need
to be abstracted and shared keeping only PlatformSupport implementations
and C struct reprs.

enabling openbsd build via mod.rs

not enabling default route on loopback interfaces.
we check the gw address and if it is a loopback one we
don't add the ifindex in the default_route ones.
2024-02-23 10:57:13 -07:00
Christien Rioux
a150a7a605 Merge branch 'salvatoret/default-empty-string' into 'main' 2024-02-17 00:18:00 +00:00
Salvatore Testa
6c6f0c4966
Default config listen_address to empty string
If the address is `""` then an available address is automatically
picked.

```
// Network#allocate_tcp_port
if listen_address.is_empty() {
    // If listen address is empty, find us a port iteratively
    let port = self.find_available_tcp_port(5150)?;
    let ip_addrs = available_unspecified_addresses();
    Ok((port, ip_addrs))
} else {
    // ...
}
```
2024-02-16 15:52:02 -08:00
Christien Rioux
c8429a0a36 Merge branch 'kyanha-hickory-resolver' into 'main'
chore: rebrand trust-dns-resolver to hickory-resolver

Closes #362

See merge request veilid/veilid!257
2024-02-12 23:55:01 +00:00
Kyle Hamilton
aa43f8d4a6 chore: rebrand trust-dns-resolver to hickory-resolver 2024-02-12 17:04:27 -05:00
Christien Rioux
16dead2d6f Merge branch 'salvatoret/cargo-clippy-cleanup' into 'main'
Resolve `cargo clippy` errors

See merge request veilid/veilid!252
2024-02-10 20:35:06 +00:00
Christien Rioux
ff853a6546 Merge branch 'salvatoret/copyable-target' into 'main'
Make Target copy-able

See merge request veilid/veilid!253
2024-02-10 20:33:50 +00:00
Christien Rioux
1db376686a Merge branch 'kyanha-unnecessary-awaits' into 'main'
'await' unnecessary before 'return'

See merge request veilid/veilid!255
2024-02-10 20:33:18 +00:00
Christien Rioux
fedc4d7bb5 Merge branch 'from-into-u8-array-types' into 'main'
impl from and into [u8; size] for byte array types

See merge request veilid/veilid!256
2024-02-10 20:32:17 +00:00
eve.hobert
62ebd4a0aa oops, removing some test code 2024-02-02 16:16:10 -06:00
eve.hobert
6b2c9ed48a adding an impl from and into [u8; size] for byte array types 2024-02-02 16:04:23 -06:00
Salvatore Testa
205be49eec
Run cargo clippy with unit tests 2024-02-02 11:03:03 -08:00
Salvatore Testa
074ec50451
Resolve cargo clippy errors
Here was the error.

```
❯ cargo clippy
    Checking veilid-tools v0.2.5 (~/Developer/veilid/veilid-tools)
error: this `MutexGuard` is held across an `await` point
   --> veilid-tools/src/tests/common/test_host_interface.rs:269:17
    |
269 |             let mut tick = tick_1.lock();
    |                 ^^^^^^^^
    |
    = help: consider using an async-aware `Mutex` type or ensuring the `MutexGuard` is dropped before calling await
note: these are all the `await` points this lock is held through
   --> veilid-tools/src/tests/common/test_host_interface.rs:271:25
    |
271 |             sleep(1000).await;
    |                         ^^^^^
...
274 |             sleep(1000).await;
    |                         ^^^^^
...
277 |             sleep(1000).await;
    |                         ^^^^^
...
280 |             sleep(1000).await;
    |                         ^^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_lock
note: the lint level is defined here
   --> veilid-tools/src/lib.rs:23:9
    |
23  | #![deny(clippy::all)]
    |         ^^^^^^^^^^^
    = note: `#[deny(clippy::await_holding_lock)]` implied by `#[deny(clippy::all)]`

error: could not compile `veilid-tools` (lib) due to previous error
```
2024-02-02 11:01:36 -08:00
Kyle Hamilton
e80984332d Removes unnecessary 'await' before 'return'
Dart, as of version 2.1.1, has a linter rule called
'unnecessary_await_in_return', described as 'Avoid returning
an awaited expression when the expression type is assignable
to the function's return type'. This can be found at
https://dart.dev/tools/linter-rules/unnecessary_await_in_return
VSCode applied that linter rule automatically, and I am tired of
the warnings, so I'm submitting this. :)
2024-02-01 23:18:44 -05:00
Salvatore Testa
5e55be4b7a
Make Target copy-able
Clippy also informed us that we can drop some of the clone calls.

```
❯ cargo clippy
    Checking veilid-core v0.2.5 (~/Developer/veilid/veilid-core)
error: using `clone` on type `Target` which implements the `Copy` trait
   --> veilid-core/src/storage_manager/record_store.rs:912:33
    |
912 |                         target: w.target.clone(),
    |                                 ^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `w.target`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
note: the lint level is defined here
   --> veilid-core/src/lib.rs:25:9
    |
25  | #![deny(clippy::all)]
    |         ^^^^^^^^^^^
    = note: `#[deny(clippy::clone_on_copy)]` implied by `#[deny(clippy::all)]`

error: using `clone` on type `Target` which implements the `Copy` trait
   --> veilid-core/src/storage_manager/watch_value.rs:199:21
    |
199 |                     target.clone(),
    |                     ^^^^^^^^^^^^^^ help: try removing the `clone` call: `target`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

error: using `clone` on type `Target` which implements the `Copy` trait
   --> veilid-core/src/storage_manager/mod.rs:737:17
    |
737 |                 vc.target.clone(),
    |                 ^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `vc.target`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy

error: could not compile `veilid-core` (lib) due to 3 previous errors
```
2024-02-01 14:32:30 -08:00
Christien Rioux
9f795ef520 Merge branch 'sajattack-main-patch-13365' into 'main'
Use proper c_char FFI type

See merge request veilid/veilid!251
2024-01-29 01:45:28 +00:00
Paul Sajna
47e9029456 Use proper c_char ffi type 2024-01-29 00:19:25 +00:00
Christien Rioux
9e690408c9 Merge branch 'feature/allow_popos' into 'main'
Added Pop!_OS to setup_linux.sh script.

See merge request veilid/veilid!248
2024-01-25 19:10:34 +00:00
Christien Rioux
ca17a1c727 Merge branch 'docs/readme-br' into 'main'
Created README in pt_BR.

See merge request veilid/veilid!249
2024-01-25 19:10:09 +00:00
Christien Rioux
6f184f7326 Merge branch 'dht-work' into 'main'
Initial DHT WatchValue support

Closes #347 and #349

See merge request veilid/veilid!250
2024-01-21 21:08:31 +00:00
Christien Rioux
fd4d42c6a2 clippy lint 2024-01-21 15:50:48 -05:00
John Smith
a092463f77 clean up warnings 2024-01-20 22:06:15 -05:00
Christien Rioux
2ef91116ee switch to build hash from modtime for capnp generation 2024-01-20 21:52:23 -05:00
Fábio Corrêa
ffb636f262 Created README in pt_BR.
pt_BR = Brazilian Portuguese.
2024-01-20 15:50:45 -03:00
Fábio Corrêa
aa8e379a7a Added Pop!_OS to setup_linux.sh script.
Pop!_OS is an Ubuntu/Debian based distro.
2024-01-20 14:48:32 -03:00
Christien Rioux
599677bb2d better version 2024-01-19 22:10:10 -05:00
Christien Rioux
617d059eb5 add missing function 2024-01-19 22:04:41 -05:00
Christien Rioux
ae339e6573 wasm fixes 2024-01-19 21:30:48 -05:00
Christien Rioux
b9705285e9 xfer 2024-01-19 14:34:09 -05:00
Christien Rioux
7848c14c2b disable dht test due to inconsistencies 2024-01-19 13:55:35 -05:00