| Crates.io | rustack |
| lib.rs | rustack |
| version | 0.1.0 |
| created_at | 2025-02-20 13:24:19.480151+00 |
| updated_at | 2025-02-20 13:24:19.480151+00 |
| description | A stack implementation in Rust. |
| homepage | https://github.com/guymarshall/rustack |
| repository | https://github.com/guymarshall/rustack |
| max_upload_size | |
| id | 1562638 |
| size | 2,890 |
Rustack
Rustack is a simple stack implementation in Rust.
Installation
Add this to your Cargo.toml:
[dependencies]
rustack = "0.1"
Usage
Here's a simple example of how to use rustack:
use rustack::Stack;
fn main() {
let mut stack = Stack::new();
stack.push(42);
println!("{:?}", stack.pop()); // Some(42)
}
Contributing
Feel free to open issues or submit pull requests if you have any improvements or suggestions.