Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "3"
members = ["dhttp", "identity", "home", "api", "access", "log"]

[workspace.package]
version = "0.6.0-beta.4"
version = "0.6.0-beta.5"
edition = "2024"
license = "Apache-2.0"
repository = "https://github.com/genmeta/dhttp"
Expand Down Expand Up @@ -43,6 +43,7 @@ tracing-subscriber = { version = "0.3", default-features = false, features = ["f
# identity types with h3x/ddns in the formal release graph.
dhttp-identity = "0.3.0-beta.1"
dhttp-home = { path = "home", version = "0.5.0-beta.1" }
dquic = { version = "0.7.0-beta.4", default-features = false }
ddns = { package = "dyns", version = "0.7.0-beta.2", features = [
"resolvers",
"publishers",
Expand All @@ -54,6 +55,6 @@ ddns = { package = "dyns", version = "0.7.0-beta.2", features = [
h3x = { version = "0.6.0-beta.4", features = [
"dquic",
] }
dhttp = { path = "dhttp", version = "0.6.0-beta.4" }
dhttp = { path = "dhttp", version = "0.6.0-beta.5" }
dhttp-access = { path = "access", version = "0.4.0-beta.2" }
dhttp-log = { path = "log", version = "0.1.0-beta.1" }
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,18 @@ Add the published crate to your Cargo manifest:

```toml
[dependencies]
dhttp = "0.2.0"
dhttp = "0.6.0-beta.5"
```

Automatic monitoring of local network-interface changes is opt-in:

```toml
[dependencies]
dhttp = { version = "0.6.0-beta.5", features = ["netwatcher"] }
```

The feature activates dquic's interface watcher; it is not part of dhttp's default feature set.

### Build an endpoint

```rust,no_run
Expand Down
4 changes: 2 additions & 2 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@genmeta/dhttp",
"version": "0.6.0-beta.4",
"version": "0.6.0-beta.5",
"description": "The True Internet",
"license": "Apache-2.0",
"homepage": "https://dhttp.net/",
Expand Down
24 changes: 24 additions & 0 deletions api/tests/package_versions.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
use std::{fs, path::PathBuf};

fn api_dir() -> PathBuf {
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
}

#[test]
fn package_versions_match_cargo_release_version() {
let expected = format!("\"version\": \"{}\"", env!("CARGO_PKG_VERSION"));
let package_json = fs::read_to_string(api_dir().join("package.json"))
.expect("package.json should be readable");
let package_lock = fs::read_to_string(api_dir().join("package-lock.json"))
.expect("package-lock.json should be readable");

assert!(
package_json.contains(&expected),
"package.json should contain {expected}"
);
assert_eq!(
package_lock.matches(&expected).count(),
2,
"package-lock.json should align its root package versions with Cargo"
);
}
3 changes: 3 additions & 0 deletions dhttp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ access-http = ["dhttp-access/http"]
access-orm = ["dhttp-access/orm"]
access-migration = ["access-orm", "dhttp-access/migration"]
access-peg-trace = ["dhttp-access/peg-trace"]
# Enables automatic monitoring of local network-interface changes.
netwatcher = ["dquic/netwatcher"]

[dependencies]
bon = { workspace = true }
Expand All @@ -32,6 +34,7 @@ dhttp-identity = { workspace = true }
dhttp-home = { workspace = true }
dhttp-access = { workspace = true }
dhttp-log = { workspace = true }
dquic = { workspace = true }
ddns = { workspace = true }
h3x = { workspace = true }

Expand Down
3 changes: 2 additions & 1 deletion dhttp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ mod tests {
}

#[test]
fn facade_declares_access_feature_forwarding() {
fn facade_declares_feature_forwarding() {
let manifest = include_str!("../Cargo.toml");

for feature in [
Expand All @@ -60,6 +60,7 @@ mod tests {
"access-orm = [\"dhttp-access/orm\"]",
"access-migration = [\"access-orm\", \"dhttp-access/migration\"]",
"access-peg-trace = [\"dhttp-access/peg-trace\"]",
"netwatcher = [\"dquic/netwatcher\"]",
] {
assert!(
manifest.contains(feature),
Expand Down
Loading