# 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.95" name = "epaint" version = "0.37.0" authors = ["Emil Ernerfeldt "] build = false include = [ "../../LICENSE-APACHE", "../../LICENSE-MIT", "**/*.rs", "Cargo.toml", ] autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = "Minimal 2D graphics library for GUI work" homepage = "https://github.com/emilk/egui/tree/main/crates/epaint" readme = "README.md" keywords = [ "graphics", "gui", "egui", ] categories = [ "graphics", "gui", ] license = "MIT OR Apache-2.0" repository = "https://github.com/emilk/egui/tree/main/crates/epaint" resolver = "2" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--generate-link-to-definition"] [features] _override_unity = [] bytemuck = [ "dep:bytemuck", "emath/bytemuck", "ecolor/bytemuck", ] cint = ["ecolor/cint"] color-hex = ["ecolor/color-hex"] color_fonts = [ "vello_cpu/png", "vello_cpu/text", ] default = [] default_fonts = ["epaint_default_fonts"] mint = ["emath/mint"] monochrome_emoji_fonts = [ "default_fonts", "epaint_default_fonts/monochrome_emoji_fonts", ] rayon = ["dep:rayon"] serde = [ "dep:serde", "ahash/serde", "ecolor/serde", "emath/serde", "font-types/serde", "smallvec/serde", ] unity = [] [lib] name = "epaint" path = "src/lib.rs" [[bench]] name = "benchmark" path = "benches/benchmark.rs" harness = false [dependencies.ahash] version = "0.8.12" features = [ "no-rng", "std", ] default-features = false [dependencies.bytemuck] version = "1.25" features = ["derive"] optional = true [dependencies.document-features] version = "0.2.12" optional = true [dependencies.ecolor] version = "0.37.0" default-features = false [dependencies.emath] version = "0.37.0" default-features = false [dependencies.epaint_default_fonts] version = "0.37.0" optional = true [dependencies.font-types] version = "0.12.4" features = ["std"] default-features = false [dependencies.harfrust] version = "0.12.0" [dependencies.log] version = "0.4.34" features = ["std"] [dependencies.nohash-hasher] version = "0.2.0" [dependencies.parking_lot] version = "0.12.5" [dependencies.profiling] version = "1.0" default-features = false [dependencies.rayon] version = "1.12" optional = true [dependencies.self_cell] version = "1.3" [dependencies.serde] version = "1.0" features = [ "derive", "derive", "rc", ] optional = true [dependencies.skrifa] version = "0.44.0" features = [ "std", "autohint_shaping", ] default-features = false [dependencies.smallvec] version = "1.16" [dependencies.unicode-general-category] version = "1.1" [dependencies.unicode-properties] version = "0.1.4" features = ["emoji"] default-features = false [dependencies.unicode-segmentation] version = "1.13" [dependencies.vello_cpu] version = "0.2.0" features = [ "std", "u8_pipeline", "f32_pipeline", ] default-features = false [dev-dependencies.criterion] version = "0.8.2" default-features = false [dev-dependencies.mimalloc] version = "0.1.52" [dev-dependencies.similar-asserts] version = "2.0" [lints.clippy] allow_attributes = "warn" as_ptr_cast_mut = "warn" assigning_clones = "allow" branches_sharing_code = "warn" cast_lossless = "allow" cast_possible_truncation = "allow" cast_possible_wrap = "allow" cast_precision_loss = "allow" cast_sign_loss = "allow" clear_with_drain = "warn" clone_on_ref_ptr = "warn" coerce_container_to_any = "warn" comparison_chain = "allow" dbg_macro = "warn" debug_assert_with_mut_call = "warn" default_trait_access = "allow" default_union_representation = "warn" derive_partial_eq_without_eq = "warn" disallowed_script_idents = "warn" doc_include_without_cfg = "warn" empty_enum_variants_with_brackets = "warn" equatable_if_let = "warn" exit = "warn" fallible_impl_from = "warn" float_cmp = "allow" float_cmp_const = "warn" fn_to_numeric_cast_any = "warn" get_unwrap = "warn" imprecise_flops = "warn" infinite_loop = "warn" inline_always = "allow" items_after_statements = "allow" iter_on_empty_collections = "warn" iter_on_single_items = "warn" iter_over_hash_type = "warn" large_include_file = "warn" large_stack_frames = "warn" let_underscore_must_use = "allow" let_underscore_untyped = "allow" literal_string_with_formatting_args = "warn" lossy_float_literal = "warn" manual_range_contains = "allow" many_single_char_names = "allow" map_err_ignore = "warn" map_unwrap_or = "allow" mem_forget = "warn" missing_assert_message = "warn" missing_panics_doc = "allow" multiple_crate_versions = "allow" must_use_candidate = "allow" mutex_integer = "warn" needless_pass_by_ref_mut = "warn" needless_type_cast = "warn" non_zero_suggestions = "warn" nonstandard_macro_braces = "warn" or_fun_call = "warn" path_buf_push_overwrite = "warn" pathbuf_init_then_push = "warn" precedence_bits = "warn" print_stderr = "warn" print_stdout = "warn" pub_without_shorthand = "warn" rc_mutex = "warn" redundant_closure_for_method_calls = "allow" redundant_type_annotations = "warn" ref_patterns = "warn" rest_pat_in_fully_bound_structs = "warn" return_and_then = "warn" return_self_not_must_use = "allow" self_named_module_files = "allow" set_contains_or_insert = "warn" should_panic_without_expect = "allow" significant_drop_tightening = "allow" similar_names = "allow" single_option_map = "warn" std_instead_of_core = "warn" str_to_string = "warn" string_add = "warn" string_lit_as_bytes = "warn" string_lit_chars_any = "warn" struct_excessive_bools = "allow" struct_field_names = "allow" suspicious_xor_used_as_pow = "warn" todo = "warn" too_long_first_doc_paragraph = "warn" too_many_lines = "allow" trailing_empty_array = "warn" trait_duplication_in_bounds = "warn" trivially_copy_pass_by_ref = "allow" tuple_array_conversions = "warn" undocumented_unsafe_blocks = "warn" unimplemented = "warn" uninhabited_references = "warn" unnecessary_safety_comment = "warn" unnecessary_safety_doc = "warn" unnecessary_self_imports = "warn" unnecessary_struct_initialization = "warn" unreadable_literal = "allow" unused_peekable = "warn" unused_rounding = "warn" unused_trait_names = "warn" unwrap_used = "warn" use_self = "warn" used_underscore_binding = "allow" useless_let_if_seq = "warn" verbose_file_reads = "warn" wildcard_imports = "allow" [lints.clippy.all] level = "warn" priority = -1 [lints.clippy.cargo] level = "warn" priority = -1 [lints.clippy.pedantic] level = "warn" priority = -1 [lints.rust] trivial_casts = "allow" trivial_numeric_casts = "warn" unsafe_code = "deny" unused_import_braces = "warn" unused_lifetimes = "warn" unused_qualifications = "allow" [lints.rust.future_incompatible] level = "warn" priority = -1 [lints.rust.nonstandard_style] level = "warn" priority = -1 [lints.rust.rust_2018_idioms] level = "warn" priority = -1 [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(web_sys_unstable_apis)"] [lints.rustdoc] all = "warn"