#security

macro vitaminc-random-derives

Derive macros for vitaminc-random. Part of the Vitamin-C cryptographic suite.

2 releases

0.1.0-pre4 Nov 21, 2025
0.1.0-pre3 Nov 20, 2025

#1150 in #security

Download history 64/week @ 2025-11-20 27/week @ 2025-11-27 38/week @ 2025-12-04 55/week @ 2025-12-11 15/week @ 2025-12-18 12/week @ 2025-12-25 64/week @ 2026-01-01 128/week @ 2026-01-08 30/week @ 2026-01-15 88/week @ 2026-01-22 62/week @ 2026-01-29 29/week @ 2026-02-05

252 downloads per month
Used in 11 crates (via vitaminc-random)

MIT license

5KB
64 lines

Vitamin C

Vitamin C is like vitamins for your Rust code, especially code dealing with cryptography and managing sensitive data. It is actually a suite of crates that you can use individually or via this top-level crate via features.

Vitamin C is in active development and aims to address the following:

  • Misuse Resistance: it aims to make it difficult to write code that is insecure.

  • Verified: be verified using formal methods and testing and selects dependencies that are verified.

  • Vetted: be vetted by security experts and selects dependencies that are vetted.

  • Minimal: be minimal and only include what is necessary.

  • Consistent: have a consistent interface with everything in one place.

  • Compatible: support embedded (no_std) and WASM targets.

  • Fast: speed and security can be friends!

Usage

You can install the top-level vitaminc crate and enable specific features:

cargo add vitaminc --features protected,random

Or, if you only need a specific capability, you can install a crate directly:

cargo add vitaminc-protected

Testing

Prerequisites:

To run the tests:

  • Start localstack (typically done by running localstack start from the shell)
  • cargo test

Features and sub-crates

Feature Source Crates.io Documentation
aead vitaminc-aead crates.io docs.rs
async-traits vitaminc-async-traits crates.io docs.rs
encrypt vitaminc-encrypt crates.io docs.rs
kms vitaminc-kms crates.io docs.rs
password vitaminc-password crates.io docs.rs
permutation vitaminc-permutation crates.io docs.rs
protected vitaminc-protected crates.io docs.rs
random vitaminc-random crates.io docs.rs
traits vitaminc-traits crates.io docs.rs

Dependencies

~125–510KB
~12K SLoC