Commit Graph

1792 Commits

Author SHA1 Message Date
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
John Smith
f96e23b0f6 better display 2024-01-19 13:53:43 -05:00
John Smith
cfd7a319d2 remove unused function 2024-01-19 13:53:43 -05:00
John Smith
277aed5d40 private route respondto fix 2024-01-19 13:53:43 -05:00
John Smith
c33b00fe32 clamp instead of reject max expiration time 2024-01-19 13:53:43 -05:00
John Smith
9c0c7cf0b2 config oops 2024-01-19 13:53:43 -05:00
John Smith
064661f20d expiration work 2024-01-19 13:53:43 -05:00
John Smith
b6f1e706f7 fix expiration 2024-01-19 13:53:43 -05:00
John Smith
d269b25a23 make ctrl-k clear screen everywhere 2024-01-19 13:53:43 -05:00
John Smith
5f5515af5e oops 2024-01-19 13:53:43 -05:00
John Smith
827a3443b0 fix lengths 2024-01-19 13:53:43 -05:00
John Smith
448267217e ranges 2024-01-19 13:53:43 -05:00
John Smith
0411055aed fixes for init nodes 2024-01-19 13:53:43 -05:00