# boxarray
[](https://github.com/xayon40-12/boxarray/actions)
[](https://crates.io/crates/boxarray)
[](https://docs.rs/boxarray)
Safe way to allocate and initialize nested arrays directly on the heap in Rust.
## Usage
To use `boxarray` in your Rust project, simply add it as a dependency in your `Cargo.toml`:
```toml
[dependencies]
boxarray = "1.0.1"
```
Then import and use it in your project:
```rust
use boxarray::boxarray;
fn main() {
let v = 7.0;
let a: Box<[[[f64; 3]; 2]; 4]> = boxarray(v);
println!("{a:?}");
}
```