1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[]
= "decdn-protocol"
= true
= true
= true
= true
= "Wire protocol types and ALPN definitions for deCDN"
= true
= true
= "README.md"
= true
= true
[]
= { = true }
= { = true }
= { = true }
= { = true }
[]
= { = true }
= { = true, = ["macros", "rt"] }
# `Region`'s serde round-trip (#1348). Dev-only on purpose: this crate is a
# deliberate leaf (serde + postcard + thiserror + tokio), and JSON is the
# consumer-side format (the `decdn-client` peer store), not one this crate speaks. `postcard`
# would serialize a `&str` length-prefixed, which cannot assert the property
# under test — that a `Region` encodes as the plain 2-character string.
= { = true }
# Public-API stability snapshot (issue #304). Only exercised by the
# `public_api` test target below, which is gated behind `public-api-test`.
= { = true }
= { = true }
= { = true }
[]
# Gates the slow, nightly-dependent `public_api` snapshot test out of the
# default `cargo nextest --workspace` (coverage) run. CI's dedicated
# `public-api` job opts in with `--features public-api-test`.
= []
# Makes the discovery-block size overridable via
# `override_discovery_block_bytes_for_test`, so a downstream loopback test can
# drive the block-spanning planner with tiny blocks (and thus tiny blobs)
# instead of the 64 MiB a real two-block blob needs. Off by default, so a
# production build reads the fixed `DISCOVERY_BLOCK_BYTES` constant and is
# byte-identical; only enabled through dev-dependencies (see `decdn-node`).
= []
# The public-API snapshot test shells out to a nightly rustdoc and is slow, so
# it is compiled/run only when `public-api-test` is enabled (see CONTRIBUTING.md
# § Public API snapshot). `required-features` makes Cargo skip the target
# entirely otherwise.
[[]]
= "public_api"
= "tests/public_api.rs"
= ["public-api-test"]
[]
= true