Skip to content

Commit

Permalink
docs: Add warning block
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Feb 24, 2025
1 parent 141102a commit ede7054
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions crates/abcrypt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ default.

This supports `no_std` mode. Disables the `default` feature to enable this.

Note that the memory blocks used by Argon2 when calculating a derived key is
limited to 256 KiB when the `alloc` feature is disabled.
> [!IMPORTANT]
> Note that the memory blocks used by Argon2 when calculating a derived key is
> limited to 256 KiB when the `alloc` feature is disabled.
### Documentation

Expand Down
4 changes: 4 additions & 0 deletions crates/abcrypt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@
//! This crate supports `no_std` mode and can be used without the `alloc` crate
//! and the `std` crate. Disables the `default` feature to enable this.
//!
//! <div class="warning">
//!
//! Note that the memory blocks used by Argon2 when calculating a derived key is
//! limited to 256 KiB when the `alloc` feature is disabled.
//!
//! </div>
//!
//! ```
//! use abcrypt::{
//! Argon2, Decryptor, Encryptor,
Expand Down
4 changes: 2 additions & 2 deletions docs/book/modules/lib/pages/usage.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ cargo add abcrypt

This supports `no_std` mode. Disables the `default` feature to enable this.

Note that the memory blocks used by Argon2 when calculating a derived key is
limited to 256 KiB when the `alloc` feature is disabled.
IMPORTANT: Note that the memory blocks used by Argon2 when calculating a
derived key is limited to 256 KiB when the `alloc` feature is disabled.

0 comments on commit ede7054

Please sign in to comment.