crates.io
...The user-space kernel API is often API-incompatible with the kernel space one, and even in the cases where they match, they are sometimes ABI incompatible such that using this library would have undefined behavior . Usage Add the following to your Cargo.toml to conditionally include mach on those...
Crate
v0.3.2
2019-06-01
crates.io
...Further, the repository will no longer be queried to calculate the version match. Feature flags postgresql_embedded uses feature flags to address compile time and binary size uses. The following features are available: Name Description Default? bundled Bundles the PostgreSQL archive into the resulting binary No blocking Enables the blocking...
Crate
v0.22.0
2026-10-21
docs.rs
...TokenStream) -> Result<TokenStream> { // Parse the struct or enum you want to implement a derive for let parse = Parse::new(input)?; // Get a reference to the generator let (mut generator, body) = parse.into_generator(); match body { Body::Struct(body) => { // Implement your struct body here // See `Generator` for more information generator.impl...
Crate
v0.0.19
2025-12-17
codspeed.io
...u64) -> u64 { match n { 0 => 1, 1 => 1, n => fibonacci(n-1) + fibonacci(n-2), } } pub 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); The last step in creating the Criterion benchmark...
Crate
v6.1.0
2026-11-20
docs.rs
...Wrap the mutable Broccoli FFI entry points in a local catch_unwind helper, matching the encoder FFI convention so Rust panics do not unwind across extern C when std panic catching is available. Return BrotliFileNotCraftedForConcatenation on caught panics and keep the existing pass-through behavior for no-std or pass...
Crate
v9.1.3
2026-11-15
crates.io
...Myers algorithm has been enhanced with preprocessing and multiple heuristics to ensure fast runtime in pathological cases to avoid quadratic time complexity and closely matches the behavior of gnu-diff and git. The histogram algorithm was originally ported from git but has been heavily optimized. The Histogram algorithm outperforms Myers...
Crate
v0.3.4
2026-11-22
crates.io
...Given a Ranges<u32> , the segments (Unbounded, Included(42u32)) and (Included(0), Included(42u32)) as well as (Included(1), Included(5)) and (Included(1), Included(3)) + (Included(4), Included(5)) are reported as unequal, even though the match the same versions: We can't tell that there isn't a...
Crate
v0.1.3
2026-04-28
crates.io
...The goal is to provide a matching and a safe error API, masking errors from LALR. fstring.rs Format strings. function.rs Collection of functions for parsing parameters, arguments. location.rs Datatypes to support source location information. mode.rs Execution mode check. Allowed modes are exec , eval or single . How...
Crate
v0.4.0
2024-08-06
docs.rs
...Zero copy deserialisation Support for serialisation buffer reuse and pooling Only safe Rust code No heap allocations Simple, descriptive, one-to-one types matching the RFCs Example use onc_rpc::{ auth::{AuthFlavor, AuthUnixParams}, CallBody, MessageType, RpcMessage, }; // Add RPC call authentication. let auth_params = AuthUnixParams::new( 42, // Stamp "bananas.local", // Machine...
Crate
v0.3.3
2026-01-16
github.com
...The computed width values may not match the actual rendered column width. For example, many Brahmic scripts like Devanagari have complex rendering rules which this crate does not currently handle (and will never fully handle, because the exact rendering depends on the font): extern crate unicode_width; use unicode_width...
Crate
v0.2.3
2026-10-28
github.com
...Encoding is also well optimized and is surpassing liblzma for level 0 to 3 and matches it for level 4 to 9. Data was assembled using lzma-rust2 v0.4.0 and liblzma v0.4.2. no_std Support This crate supports no_std environments by disabling the default std...
Crate
v0.26.0
2026-11-25
crates.io
...For more information on how to use it please refer to https://containers.dev To make sure your changes match the project style you can install the pre-commit hooks with pre-commit install . This requires pre-commit to be installed on your system. License Copyright (c) 2023 Lorenzo Murarotto...
Crate
v0.17.0
2026-11-04
docs.rs
...u64 = key.get_value("TestQWORD")?; println!("TestQWORD = {}", qword_val); key.create_subkey("sub\\key")?; hkcu.delete_subkey_all(&path)?; println!("Trying to open nonexistent key..."); hkcu.open_subkey(&path).unwrap_or_else(|e| match e.kind() { io::ErrorKind::NotFound => panic!("Key doesn't exist"), io::ErrorKind::PermissionDenied => panic!("Access denied...
Crate
v0.56.0
2026-03-14
docs.rs
...must be present and match a key in the bundle Trusted JWK metadata : explicit alg must match the token; EC curve labels and coordinate widths must match ES256/P-256 or ES384/P-384. Explicit use must be sig or jwt-svid . Explicit key_ops must be a non-null...
Crate
v0.19.0
2026-10-28
crates.io
...Usage with Flatpak/Snap If you use Flatpak/Snap to publish your package and your Tauri identifier doesn't match the package id, set the DBUS_ID variable using the builder for the plugin, look at example. Contributing PRs accepted. Please make sure to read the Contributing Guide before making...
Crate
v2.5.5
2026-10-28
docs.rs
...By default, the member names of the struct are matched with the values in the header record of your CSV data. use std::{error::Error, io, process}; #[derive(Debug, serde::Deserialize)] struct Record { city: String, region: String, country: String, population: Option<u64>, } fn example() -> Result<(), Box<dyn Error>> { let mut...
Crate
v1.4.0
2025-10-17
docs.rs
...Example // This could be a cargo build script use rustc_version::{version, version_meta, Channel, Version}; fn main() { // Assert we haven't travelled back in time assert!(version().unwrap().major >= 1); // Set cfg flags depending on release channel match version_meta().unwrap().channel { Channel::Stable => { println!("cargo:rustc-cfg=RUSTC...
Crate
v0.4.1
2024-08-28
docs.rs
...Exhaustive matches on the previous six-variant Value enum need either a Value::Tagged(_) arm or a call to Value::untag() / Value::untag_ref() before the match. YAML 1.2 strict booleans by default. country: NO stays "NO" (the YAML 1.2 fix to the "Norway problem") instead of becoming...
Crate
v0.0.13
2026-05-27
docs.rs
...templates` dir in the crate root struct HelloTemplate<'a> { // the name of the struct can be anything name: &'a str, // the field name should match the variable name // in your template } fn main() { let hello = HelloTemplate { name: "world" }; // instantiate your struct println!("{}", hello.render().unwrap()); // then render it. } You should...
Crate
v0.16.1
2026-09-04
askama.rs
...templates` dir in the crate root struct HelloTemplate<'a> { // the name of the struct can be anything name: &'a str, // the field name should match the variable name // in your template } fn main() { let hello = HelloTemplate { name: "world" }; // instantiate your struct println!("{}", hello.render().unwrap()); // then render it. } You should...
Crate
v0.16.1
2026-09-04