chore: update cargo.toml

This commit is contained in:
Kristofers Solo 2024-11-13 16:36:05 +02:00
parent 3700e0991e
commit 90570d0eca
2 changed files with 29 additions and 6 deletions

View File

@ -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"]

View File

@ -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 {