From 90570d0eca2334564e47cf4777333935e2d52ae6 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Wed, 13 Nov 2024 16:36:05 +0200 Subject: [PATCH] chore: update cargo.toml --- Cargo.toml | 30 +++++++++++++++++++++++++++--- src/builder.rs | 5 ++--- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index de1c3ea..16f6725 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,10 +3,19 @@ name = "hexlab" authors = ["Kristofers Solo "] 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"] diff --git a/src/builder.rs b/src/builder.rs index b61b600..11917ae 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -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 {