[package]
edition = "2024"
rust-version = "1.92"
name = "vello_api"
version = "0.0.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Defines the public API types for Vello, providing a stable interface for CPU and Hybrid rendering implementations."
readme = "README.md"
keywords = [
"2d",
"vector-graphics",
]
categories = [
"rendering",
"graphics",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/linebender/vello"
resolver = "2"
[features]
default = [
"std",
"png",
]
libm = ["peniko/libm"]
png = [
"std",
"dep:png",
]
simd = []
std = ["peniko/std"]
[lib]
name = "vello_api"
path = "src/lib.rs"
[dependencies.bytemuck]
version = "1.25.0"
features = ["derive"]
[dependencies.peniko]
version = "0.6.0"
features = ["bytemuck"]
default-features = false
[dependencies.png]
version = "0.18.1"
optional = true
[lints.clippy]
allow_attributes_without_reason = "warn"
cargo_common_metadata = "warn"
cast_possible_truncation = "warn"
collection_is_never_read = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
default_trait_access = "warn"
doc_markdown = "warn"
fn_to_numeric_cast_any = "warn"
infinite_loop = "warn"
large_stack_arrays = "warn"
mismatching_type_param_order = "warn"
missing_assert_message = "warn"
missing_fields_in_debug = "warn"
negative_feature_names = "warn"
redundant_feature_names = "warn"
same_functions_in_if_condition = "warn"
semicolon_if_nothing_returned = "warn"
should_panic_without_expect = "warn"
todo = "warn"
too_many_arguments = "allow"
unseparated_literal_suffix = "warn"
use_self = "warn"
wildcard_dependencies = "warn"
[lints.rust]
elided_lifetimes_in_paths = "warn"
keyword_idents_2024 = "forbid"
missing_debug_implementations = "warn"
missing_docs = "warn"
non_ascii_idents = "forbid"
non_local_definitions = "forbid"
trivial_numeric_casts = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "forbid"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"