Commit Graph

1754 Commits

Author SHA1 Message Date
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
Christien Rioux
b9aa268f71 schema work 2024-01-19 13:55:35 -05:00
Christien Rioux
37ed0239f3 checkpoint 2024-01-19 13:55:35 -05:00
Christien Rioux
92cb5a07cf add watch capability 2024-01-19 13:55:35 -05:00
John Smith
70ef992714 windows fix 2024-01-19 13:55:35 -05:00
John Smith
5ad4814515 push configuration check to veilid-server 2024-01-19 13:55:35 -05:00
John Smith
25637e5ff5 disable async-std+windows build 2024-01-19 13:55:35 -05:00
John Smith
633c0394c9 fix windows tokio signature 2024-01-19 13:55:35 -05:00
John Smith
b11f404d3f async-std support 2024-01-19 13:55:35 -05:00
John Smith
4e36524778 windows named pipe support for python 2024-01-19 13:55:35 -05:00
John Smith
6bfe9a0236 default to ipc only 2024-01-19 13:55:35 -05:00
John Smith
d1aa488883 windows specific ipc logic 2024-01-19 13:55:35 -05:00
John Smith
f47adfa03f change signature of accept function 2024-01-19 13:55:35 -05:00
John Smith
d454f9fdf9 update deps 2024-01-19 13:55:35 -05:00
John Smith
bdb64a96ea cleanup a bit 2024-01-19 13:55:35 -05:00
John Smith
eecbb14774 defer to specified command line mode 2024-01-19 13:55:35 -05:00
John Smith
caa2746110 ipc works 2024-01-19 13:55:35 -05:00
John Smith
37979277b5 IPC to server 2024-01-19 13:55:33 -05:00
John Smith
6d2119f32e fix #347 and #349 2024-01-19 13:53:43 -05:00
John Smith
7129343ea1 some debugging for bootstrap and route purge 2024-01-19 13:53:43 -05:00
John Smith
97a9a8d3af python update 2024-01-19 13:53:43 -05:00
John Smith
2e2f3b0bc4 clippy lint 2024-01-19 13:53:43 -05:00