|
|
|
[package]
|
|
|
|
name = "citro3d"
|
|
|
|
authors = ["Rust3DS Org"]
|
|
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
glam = { version = "0.24.2", optional = true }
|
|
|
|
approx = { version = "0.5.1", optional = true }
|
|
|
|
bitflags = "1.3.2"
|
|
|
|
bytemuck = { version = "1.10.0", features = ["extern_crate_std"] }
|
|
|
|
citro3d-macros = { version = "0.1.0", path = "../citro3d-macros" }
|
|
|
|
citro3d-sys = { git = "https://github.com/rust3ds/citro3d-rs.git" }
|
|
|
|
ctru-rs = { git = "https://github.com/rust3ds/ctru-rs.git" }
|
|
|
|
ctru-sys = { git = "https://github.com/rust3ds/ctru-rs.git" }
|
|
|
|
document-features = "0.2.7"
|
|
|
|
libc = "0.2.125"
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = ["glam"]
|
|
|
|
## Enable this feature to use the `approx` crate for comparing vectors and matrices.
|
|
|
|
approx = ["dep:approx"]
|
|
|
|
## Enable for glam support in uniforms
|
|
|
|
glam = ["dep:glam"]
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
test-runner = { git = "https://github.com/rust3ds/test-runner.git" }
|
|
|
|
|
|
|
|
[dev-dependencies.citro3d]
|
|
|
|
# Basically, this works like `cargo 3ds test --features ...` for building tests
|
|
|
|
# https://github.com/rust-lang/cargo/issues/2911#issuecomment-749580481
|
|
|
|
path = "."
|
|
|
|
features = ["approx"]
|
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
default-target = "armv6k-nintendo-3ds"
|
|
|
|
targs = []
|
|
|
|
cargo-args = ["-Z", "build-std"]
|