mirror of
https://github.com/kristoferssolo/hexlab.git
synced 2025-10-21 19:40:34 +00:00
chore: update cargo.toml
This commit is contained in:
parent
3700e0991e
commit
90570d0eca
30
Cargo.toml
30
Cargo.toml
@ -3,10 +3,19 @@ name = "hexlab"
|
||||
authors = ["Kristofers Solo <dev@kristofers.xyz>"]
|
||||
version = "0.1.1"
|
||||
edition = "2021"
|
||||
description = "A hexagonal maze library"
|
||||
description = "A hexagonal maze generation and manipulation library"
|
||||
repository = "https://github.com/kristoferssolo/hexlab"
|
||||
documentation = "https://docs.rs/hexlab"
|
||||
homepage = "https://github.com/kristoferssolo/hexlab"
|
||||
license = "MIT OR Apache-2.0"
|
||||
keywords = ["maze", "hex", "hexagons"]
|
||||
keywords = ["maze", "hex", "hexagons", "generation", "game"]
|
||||
categories = [
|
||||
"algorithms",
|
||||
"game-development",
|
||||
"mathematics",
|
||||
"data-structures",
|
||||
]
|
||||
exclude = ["/.github", "/.gitignore", "/tests", "*.png", "*.md"]
|
||||
|
||||
[dependencies]
|
||||
bevy = { version = "0.14", optional = true }
|
||||
@ -16,9 +25,24 @@ rand_chacha = "0.3"
|
||||
serde = { version = "1.0", features = ["derive"], optional = true }
|
||||
thiserror = "2.0"
|
||||
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
serde = ["dep:serde", "hexx/serde", "rand_chacha/serde"]
|
||||
bevy = ["dep:bevy", "hexx/bevy_reflect"]
|
||||
full = ["serde", "bevy"]
|
||||
|
||||
[dev-dependencies]
|
||||
[profile.dev]
|
||||
opt-level = 1 # Better compile times with some optimization
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
lto = "thin"
|
||||
strip = true # Smaller binary size
|
||||
panic = "abort" # Smaller binary size
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
@ -1,10 +1,9 @@
|
||||
use hexx::Hex;
|
||||
use thiserror::Error;
|
||||
|
||||
use crate::{
|
||||
generator::{generate_backtracking, GeneratorType},
|
||||
HexMaze,
|
||||
};
|
||||
use hexx::Hex;
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum MazeBuilderError {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user