Skip to content

Commit c827ca8

Browse files
Add AGENTS.md with Cursor Cloud specific instructions
Co-authored-by: AdaWorldAPI <AdaWorldAPI@users.noreply.github.com>
1 parent 5d3c29b commit c827ca8

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# AGENTS.md
2+
3+
## Cursor Cloud specific instructions
4+
5+
This is a Rust library crate (ndarray fork with HPC extensions). No external services (databases, APIs) are needed.
6+
7+
### Quick reference
8+
9+
| Action | Command |
10+
|--------|---------|
11+
| Build | `cargo build` |
12+
| Lint | `cargo clippy -- -D warnings` |
13+
| Test (lib) | `cargo test --lib -p ndarray` |
14+
| Test (workspace) | `cargo test` |
15+
| Test (HPC subset) | `cargo test --lib -p ndarray -- hpc::` |
16+
| Run example | `cargo run --example life` |
17+
| Format check | `cargo fmt -- --check` |
18+
19+
### Environment notes
20+
21+
- **Rust 1.94.0** is pinned via `rust-toolchain.toml`; rustup auto-selects it in `/workspace`.
22+
- **No AVX-512 hardware** in Cloud Agent VMs — SIMD kernel tests using `#[target_feature(enable = "avx512f")]` are compile-gated and will be skipped at runtime. This is expected behavior.
23+
- **Feature gates**: `intel-mkl` and `openblas` are mutually exclusive and require system libraries not installed by default. The default build uses `native` (pure Rust SIMD) which needs no extra libs.
24+
- **Build time**: ~18s cold, <1s incremental. Tests (~1819) take ~70s.
25+
- The workspace has sub-crates under `crates/` and `ndarray-rand/`. Default members exclude `blas-tests` and `blas-mock-tests` (they activate the `blas` feature which needs cblas-sys linking).
26+
- `libssl-dev` is needed as a build dependency for some transitive crates.

0 commit comments

Comments
 (0)