guillotine 0.4.0

A no_std graphical user interface framework in Rust for embedded devices prioritizing resource efficiency and ergonomics.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.87"
name = "guillotine"
version = "0.4.0"
build = false
exclude = [
    "/.cargo",
    "/.github",
    "/img",
    "/probes",
    "/scripts",
    "/rust-toolchain.toml",
    "/rustfmt.toml",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A no_std graphical user interface framework in Rust for embedded devices prioritizing resource efficiency and ergonomics."
documentation = "https://docs.rs/guillotine"
readme = "README.md"
keywords = [
    "embedded",
    "gui",
    "graphics",
    "no_std",
    "embedded-graphics",
]
categories = [
    "embedded",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mempirate/guillotine"

[features]
default = [
    "defmt",
    "framebuffer",
]
defmt = [
    "dep:defmt",
    "embedded-graphics/defmt",
]
flexbox = []
framebuffer = []
simulator = [
    "dep:embedded-graphics-simulator",
    "dep:sdl2",
]

[lib]
name = "guillotine"
path = "src/lib.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"
required-features = [
    "simulator",
    "flexbox",
]

[[example]]
name = "binary"
path = "examples/binary.rs"
required-features = ["simulator"]

[[example]]
name = "custom_element"
path = "examples/custom_element.rs"
required-features = ["simulator"]

[[example]]
name = "flexbox"
path = "examples/flexbox.rs"
required-features = [
    "simulator",
    "flexbox",
]

[[example]]
name = "power_monitor"
path = "examples/power_monitor.rs"
required-features = [
    "simulator",
    "flexbox",
]

[dependencies.defmt]
version = "1.1.1"
optional = true

[dependencies.embedded-graphics]
version = "0.8.2"

[dependencies.embedded-graphics-simulator]
version = "0.8.0"
features = ["with-sdl"]
optional = true
default-features = false

[dependencies.heapless]
version = "0.9.3"

[dependencies.sdl2]
version = "0.38.0"
features = [
    "bundled",
    "static-link",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[lints.clippy]
borrow_as_ptr = "warn"
branches_sharing_code = "warn"
clear_with_drain = "warn"
cloned_instead_of_copied = "warn"
collapsible_if = "warn"
collapsible_match = "warn"
collection_is_never_read = "warn"
dbg_macro = "warn"
derive_partial_eq_without_eq = "warn"
doc_markdown = "warn"
empty_line_after_doc_comments = "warn"
empty_line_after_outer_attr = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
flat_map_option = "warn"
from_iter_instead_of_collect = "warn"
if_not_else = "warn"
if_then_some_else_none = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
iter_without_into_iter = "warn"
large_stack_frames = "warn"
manual_assert = "warn"
manual_clamp = "warn"
manual_is_variant_and = "warn"
manual_string_new = "warn"
match_same_arms = "warn"
missing_const_for_fn = "warn"
mutex_integer = "warn"
naive_bytecount = "warn"
needless_bitwise_bool = "warn"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
nonstandard_macro_braces = "warn"
option_as_ref_cloned = "warn"
path_buf_push_overwrite = "warn"
read_zero_byte_vec = "warn"
redundant_clone = "warn"
redundant_else = "warn"
single_char_pattern = "warn"
string_lit_as_bytes = "warn"
string_lit_chars_any = "warn"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
transmute_undefined_repr = "warn"
trivial_regex = "warn"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
unnecessary_self_imports = "warn"
unnecessary_struct_initialization = "warn"
unnested_or_patterns = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
while_float = "warn"
zero_sized_map_values = "warn"

[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unused_must_use = "deny"

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rustdoc]
all = "warn"