Merge branch 'capnp-1.1.0' into 'main'

chore: update capnp version to 1.1.0

See merge request veilid/veilid!403
This commit is contained in:
Christien Rioux 2025-05-06 11:48:48 -04:00
commit 7416cac0dd
8 changed files with 583 additions and 582 deletions

View file

@ -22,7 +22,7 @@ sudo systemctl stop veilid-server.service
### Setup the config
In _/etc/veilid-server/veilid-server.conf`_ ensure _bootstrap: ['bootstrap.<your.domain>']_ in the _routing_table:_ section
In `/etc/veilid-server/veilid-server.conf`, ensure `bootstrap: ['bootstrap.<your.domain>']` in the `routing_table:` section.
If you came here from the [dev network setup](./dev-setup/dev-network-setup.md) guide, this is when you set the network key.

View file

@ -1,5 +1,6 @@
**UNRELEASED**
- Update capnproto version to 1.1.0
- *BREAKING API CHANGE*:
- watch_dht_values() now returns a bool rather than an expiration timestamp. Expiration renewal is now managed by veilid-core internally. Apps no longer need to renew watches!
- inspect_dht_record() and cancel_dht_watch() now take an Option<ValueSubkeyRangeSet> instead of just a ValueSubkeyRangeSet, to make things easier for automatic binding generation someday and to remove ambiguities about the semantics of the default empty set.

8
Cargo.lock generated
View file

@ -869,18 +869,18 @@ checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
[[package]]
name = "capnp"
version = "0.19.8"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4e985a566bdaae9a428a957d12b10c318d41b2afddb54cfbb764878059df636e"
checksum = "b1d1b4a00e80b7c4b1a49e845365f25c9d8fd0a19c9cd8d66f68afea47b1f020"
dependencies = [
"embedded-io 0.6.1",
]
[[package]]
name = "capnpc"
version = "0.19.0"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c75ba30e0f08582d53c2f3710cf4bb65ff562614b1ba86906d7391adffe189ec"
checksum = "5af589f7a7f3e6d920120b913345bd9a2fc65dfd76c5053a142852a5ea2e8609"
dependencies = [
"capnp",
]

View file

@ -156,7 +156,7 @@ Install Git from <https://git-scm.com/download/win>
Install Rust from <https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe> (this may prompt you to run the Visual Studio Installer, and reboot, before proceeding).
Optional (only if modifying capnp schema): Ensure that capnp.exe (for Capn Proto 1.0.1) is in a directory in your path. For example, it can be obtained from the <https://capnproto.org/capnproto-c++-win32-1.0.1.zip> distribution. Please note that the Windows Package Manager Community Repository (i.e., winget) as of 2023-09-15 has version 0.10.4, which is not sufficient.
Optional (only if modifying capnp schema): Ensure that capnp.exe (for Capn Proto 1.1.0) is in a directory in your path. For example, it can be obtained from the <https://capnproto.org/capnproto-c++-win32-1.1.0.zip> distribution, and also from winget (as of 2025-03-08 it has version 1 .1.0).
Start a Command Prompt window.

View file

@ -1,6 +1,6 @@
#!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
CAPNPROTO_VERSION="1.0.1" # Keep in sync with veilid-core/build.rs
CAPNPROTO_VERSION="1.1.0 " # Keep in sync with veilid-core/build.rs
mkdir /tmp/capnproto-install
pushd /tmp/capnproto-install

View file

@ -134,7 +134,7 @@ async-std-resolver = { version = "0.24.4", optional = true }
hickory-resolver = { version = "0.24.4", optional = true }
# Serialization
capnp = { version = "0.19.8", default-features = false, features = ["alloc"] }
capnp = { version = "0.21.0", default-features = false, features = ["alloc"] }
serde = { version = "1.0.218", features = ["derive", "rc"] }
serde_json = { version = "1.0.140" }
serde-big-array = "0.5.1"
@ -277,7 +277,7 @@ veilid-tracing-wasm = "^0"
### BUILD OPTIONS
[build-dependencies]
capnpc = "0.19.0"
capnpc = "0.21.0"
glob = "0.3.2"
filetime = "0.2.25"
sha2 = "0.10.8"

View file

@ -9,7 +9,7 @@ use std::{
process::{Command, Stdio},
};
const CAPNP_VERSION: &str = "1.0.2";
const CAPNP_VERSION: &str = "1.1.0";
fn get_desired_capnp_version_string() -> String {
CAPNP_VERSION.to_string()

File diff suppressed because it is too large Load diff