#stack #ack #rustack

rustack

A stack implementation in Rust

1 unstable release

0.1.0 Feb 20, 2025

#1093 in Algorithms

MIT license

3KB

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.

No runtime deps