docs.rs
...To run tests, you'll need to explicitly run the test crate: $ cargo test --manifest-path test/Cargo.toml To test that this library matches the output of the reference C++ library, use: $ cargo test --manifest-path test/Cargo.toml --features cpp Tests are in a separate crate because of...
Crate
v1.1.2
2026-07-15
crates.io
...We strive to cut down on boilerplate as much as possible, and try to avoid matching on every opcode repeatedly throughout the whole code base. We do this via heavy macro_rules usage where we define the bytecode inside a higher-order macro and then automatically derive a disassembler, decoder...
Crate
v36.0.14
2026-08-20
docs.rs
...Enum variants rename PascalCase → SCREAMING_SNAKE_CASE in match arms. The shim defines pub const YamlUtf8Encoding etc. so the names still work in value position ( yaml_emitter_set_encoding(emit, YamlUtf8Encoding) ). In refutable patterns ( match enc { YamlUtf8Encoding => … } ) the upstream's SCREAMING_SNAKE_CASE name is required ( YAML_UTF8_ENCODING ). Both...
Crate
v0.0.6
2026-05-29
crates.io
...Rejecting characters that UTS 46 maps to IDNA 2008-permitted characters wasn't supported in earlier versions, either.) domain_to_ascii_strict now performs the CheckHyphens check (matching previous documentation). The ContextJ rules are now implemented and always enabled, even when using the old deprecated API, so input that fails...
Crate
v1.1.0
2025-08-21
docs.rs
...for ArrayEntry {} fn array_from_bytes(buf: &[u8]) -> &[ArrayEntry] { // NOTE: length is not a concern here, // since slice_from_bytes() can return empty slice. match plain::slice_from_bytes(buf) { Err(_) => panic!("The buffer is not aligned!"), Ok(arr) => arr, } } fn array_from_unaligned_bytes(buf: &[u8]) -> Vec<ArrayEntry> { let...
Crate
v0.2.3
2017-11-24
codspeed.io
...u64) -> u64 { match n { 0 => 1, 1 => 1, n => fibonacci(n-1) + fibonacci(n-2), } } fn criterion_benchmark(c: &mut Criterion) { c.bench_function("fib 20", |b| b.iter(|| fibonacci(black_box(20)))); } criterion_group!(benches, criterion_benchmark); criterion_main!(benches); Finally, run this benchmark with cargo bench . You should...
Crate
v5.0.1
2026-06-26
crates.io
...iOS For universal links , you need a server with a .well-known/apple-app-site-association endpoint that must return a text response in the given format: { "applinks": { "details": [ { "appIDs": [ "$DEVELOPMENT_TEAM_ID.$APP_BUNDLE_ID" ], "components": [ { "/": "/open/*", "comment": "Matches any URL whose path starts with /open/" } ] } ] } } Where $DEVELOPMENT_TEAM...
Crate
v2.4.9
2026-05-02
criterion-rs.github.io
...u64) -> u64 { match n { 0 => 1, 1 => 1, n => fibonacci(n-1) + fibonacci(n-2), } } fn criterion_benchmark(c: &mut Criterion) { c.bench_function("fib 20", |b| b.iter(|| fibonacci(black_box(20)))); } criterion_group!(benches, criterion_benchmark); criterion_main!(benches); Finally, run this benchmark with cargo bench . You should...
Crate
v0.8.2
2026-02-04
crates.io
...u64) -> u64 { match n { 0 => 1, 1 => 1, n => fibonacci(n-1) + fibonacci(n-2), } } fn criterion_benchmark(c: &mut Criterion) { c.bench_function("fib 20", |b| b.iter(|| fibonacci(black_box(20)))); } criterion_group!(benches, criterion_benchmark); criterion_main!(benches); Finally, run this benchmark with cargo bench . You should...
Crate
v0.8.2
2026-02-04
crates.io
...The system version of librdkafka must exactly match the version of librdkafka bundled with this crate. The static-linking feature can be used to link rdkafka to a locally built version of librdkafka: if the feature is enabled, the build script will try to find DEP_LIBRDKAFKA_STATIC_ROOT environment...
Crate
v4.10.0+2.12.1
2026-01-25
docs.rs
...Refer to the following table to find a version of mime_guess which matches your version of mime : mime version mime_guess version 0.1.x, 0.2.x 1.x.y 0.3.x 2.x.y Note: MIME Types Returned Are Not Stable/Guaranteed The media types returned...
Crate
v2.0.5
2024-06-29
docs.rs
...In order to allow for human error, the "Patch" semver number is used by this crate and does not necessarily match the provided libbpf version. For example, both the 0.6.1 and 0.6.2 releases of this crate contain bindings to libbpf v0.6.1 , but the later...
Crate
v1.7.0+v1.7.0
2026-03-16
crates.io
...packet are separated without parsing all their fields. For each header a slice is generated that allows access to the fields of a header. match SlicedPacket::from_ethernet(&packet) { Err(value) => println!("Err {:?}", value), Ok(value) => { println!("link: {:?}", value.link); println!("link_exts: {:?}", value.link_exts); // contains vlan & macsec println...
Crate
v0.21.0
2026-07-21
docs.rs
...serving", id, remote_addr); let (reader, writer) = io::split(stream); match io::copy(reader, writer).await { Ok(_) => eprintln!("{:010}[{}]: closed", id, remote_addr), Err(err) => eprintln!("{:010}[{}]: {:?}", id, remote_addr, err), } }) .attach(); echos.push(handle); } } All you have to do for it to be function is setting up thread context...
Crate
v0.2.6
2025-09-27
docs.rs
...serving", id, remote_addr); let (reader, writer) = io::split(stream); match io::copy(reader, writer).await { Ok(_) => eprintln!("{:010}[{}]: closed", id, remote_addr), Err(err) => eprintln!("{:010}[{}]: {:?}", id, remote_addr, err), } }) .attach(); echos.push(handle); } } All you have to do for it to be function is setting up thread context...
Crate
v0.2.2
2025-09-27
docs.rs
...serving", id, remote_addr); let (reader, writer) = io::split(stream); match io::copy(reader, writer).await { Ok(_) => eprintln!("{:010}[{}]: closed", id, remote_addr), Err(err) => eprintln!("{:010}[{}]: {:?}", id, remote_addr, err), } }) .attach(); echos.push(handle); } } All you have to do for it to be function is setting up thread context...
Crate
v1.1.2
2025-09-27
docs.rs
...Refer to the following table to find a version of mime_guess2 which matches your version of mime : mime version mime_guess2 version 0.1.x, 0.2.x 1.x.y 0.3.x 2.x.y Note: MIME Types Returned Are Not Stable/Guaranteed The media types returned...
Crate
v2.3.1
2025-05-01
docs.rs
...match(&frames.thread_name) { frames.thread_name = name.to_string(); } } } } if let Ok(report) = guard.frames_post_processor(frames_post_processor()).report().build() { let file = File::create("flamegraph.svg").unwrap(); report.flamegraph(file).unwrap(); } Use with pprof With protobuf feature enabled, pprof-rs can also output profile.proto format. match...
Crate
v0.14.1
2025-07-23
docs.rs
...match(&frames.thread_name) { frames.thread_name = name.to_string(); } } } } if let Ok(report) = guard.frames_post_processor(frames_post_processor()).report().build() { let file = File::create("flamegraph.svg").unwrap(); report.flamegraph(file).unwrap(); } Use with pprof With protobuf feature enabled, pprof-rs can also output profile.proto format. match...
Crate
v0.13.1
2024-11-21
crates.io
...3rd party build verification tools will use this tag to identify a matching github releases. source_revision string (optional) The revision identifier of this build, usually a git sha that can be rebuilt to reproduce the same binary. 3rd party build verification tools will use this tag to identify a...
Crate
v1.1.3
2026-05-15