| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.65" |
| 15 |
name = "kurbo" |
| 16 |
version = "0.11.3" |
| 17 |
authors = ["Raph Levien <[email protected]>"] |
| 18 |
build = false |
| 19 |
autolib = false |
| 20 |
autobins = false |
| 21 |
autoexamples = false |
| 22 |
autotests = false |
| 23 |
autobenches = false |
| 24 |
description = "A 2D curves library" |
| 25 |
readme = "README.md" |
| 26 |
keywords = [ |
| 27 |
"graphics", |
| 28 |
"curve", |
| 29 |
"curves", |
| 30 |
"bezier", |
| 31 |
"geometry", |
| 32 |
] |
| 33 |
categories = ["graphics"] |
| 34 |
license = "Apache-2.0 OR MIT" |
| 35 |
repository = "https://github.com/linebender/kurbo" |
| 36 |
|
| 37 |
[package.metadata.docs.rs] |
| 38 |
all-features = true |
| 39 |
default-target = "x86_64-unknown-linux-gnu" |
| 40 |
targets = [] |
| 41 |
|
| 42 |
[features] |
| 43 |
default = ["std"] |
| 44 |
euclid = ["dep:euclid"] |
| 45 |
libm = [ |
| 46 |
"dep:libm", |
| 47 |
"euclid?/libm", |
| 48 |
] |
| 49 |
mint = ["dep:mint"] |
| 50 |
schemars = [ |
| 51 |
"schemars/smallvec", |
| 52 |
"dep:schemars", |
| 53 |
] |
| 54 |
serde = [ |
| 55 |
"smallvec/serde", |
| 56 |
"dep:serde", |
| 57 |
] |
| 58 |
std = ["euclid?/std"] |
| 59 |
|
| 60 |
[lib] |
| 61 |
name = "kurbo" |
| 62 |
path = "src/lib.rs" |
| 63 |
|
| 64 |
[[example]] |
| 65 |
name = "arclen_accuracy" |
| 66 |
path = "examples/arclen_accuracy.rs" |
| 67 |
|
| 68 |
[[example]] |
| 69 |
name = "circle" |
| 70 |
path = "examples/circle.rs" |
| 71 |
|
| 72 |
[[example]] |
| 73 |
name = "cubic_arclen" |
| 74 |
path = "examples/cubic_arclen.rs" |
| 75 |
|
| 76 |
[[example]] |
| 77 |
name = "ellipse" |
| 78 |
path = "examples/ellipse.rs" |
| 79 |
|
| 80 |
[[example]] |
| 81 |
name = "fit_poly" |
| 82 |
path = "examples/fit_poly.rs" |
| 83 |
|
| 84 |
[[example]] |
| 85 |
name = "offset" |
| 86 |
path = "examples/offset.rs" |
| 87 |
|
| 88 |
[[example]] |
| 89 |
name = "quad_intersect" |
| 90 |
path = "examples/quad_intersect.rs" |
| 91 |
|
| 92 |
[[example]] |
| 93 |
name = "simplify" |
| 94 |
path = "examples/simplify.rs" |
| 95 |
|
| 96 |
[dependencies.arrayvec] |
| 97 |
version = "0.7.6" |
| 98 |
default-features = false |
| 99 |
|
| 100 |
[dependencies.euclid] |
| 101 |
version = "0.22" |
| 102 |
optional = true |
| 103 |
default-features = false |
| 104 |
|
| 105 |
[dependencies.libm] |
| 106 |
version = "0.2.15" |
| 107 |
optional = true |
| 108 |
|
| 109 |
[dependencies.mint] |
| 110 |
version = "0.5.9" |
| 111 |
optional = true |
| 112 |
|
| 113 |
[dependencies.schemars] |
| 114 |
version = "0.8.22" |
| 115 |
optional = true |
| 116 |
|
| 117 |
[dependencies.serde] |
| 118 |
version = "1.0.219" |
| 119 |
features = [ |
| 120 |
"alloc", |
| 121 |
"derive", |
| 122 |
] |
| 123 |
optional = true |
| 124 |
default-features = false |
| 125 |
|
| 126 |
[dependencies.smallvec] |
| 127 |
version = "1.15.1" |
| 128 |
|
| 129 |
[dev-dependencies.rand] |
| 130 |
version = "0.9.2" |
| 131 |
|
| 132 |
[target.wasm32-unknown-unknown.dev-dependencies.getrandom] |
| 133 |
version = "0.3.3" |
| 134 |
features = ["wasm_js"] |
| 135 |
|
| 136 |
[lints.clippy] |
| 137 |
allow_attributes = "warn" |
| 138 |
allow_attributes_without_reason = "warn" |
| 139 |
cargo_common_metadata = "warn" |
| 140 |
cast_possible_truncation = "warn" |
| 141 |
collection_is_never_read = "warn" |
| 142 |
dbg_macro = "warn" |
| 143 |
debug_assert_with_mut_call = "warn" |
| 144 |
doc_markdown = "warn" |
| 145 |
exhaustive_enums = "warn" |
| 146 |
fn_to_numeric_cast_any = "forbid" |
| 147 |
infinite_loop = "warn" |
| 148 |
large_include_file = "warn" |
| 149 |
large_stack_arrays = "warn" |
| 150 |
match_same_arms = "warn" |
| 151 |
mismatching_type_param_order = "warn" |
| 152 |
missing_assert_message = "warn" |
| 153 |
missing_errors_doc = "warn" |
| 154 |
missing_fields_in_debug = "warn" |
| 155 |
missing_panics_doc = "warn" |
| 156 |
negative_feature_names = "warn" |
| 157 |
partial_pub_fields = "warn" |
| 158 |
redundant_feature_names = "warn" |
| 159 |
return_self_not_must_use = "warn" |
| 160 |
same_functions_in_if_condition = "warn" |
| 161 |
semicolon_if_nothing_returned = "warn" |
| 162 |
shadow_unrelated = "warn" |
| 163 |
should_panic_without_expect = "warn" |
| 164 |
todo = "warn" |
| 165 |
trivially_copy_pass_by_ref = "warn" |
| 166 |
unseparated_literal_suffix = "warn" |
| 167 |
use_self = "warn" |
| 168 |
wildcard_dependencies = "warn" |
| 169 |
wildcard_imports = "warn" |
| 170 |
|
| 171 |
[lints.rust] |
| 172 |
elided_lifetimes_in_paths = "warn" |
| 173 |
keyword_idents_2024 = "forbid" |
| 174 |
let_underscore_drop = "warn" |
| 175 |
missing_debug_implementations = "warn" |
| 176 |
missing_docs = "warn" |
| 177 |
non_ascii_idents = "forbid" |
| 178 |
non_local_definitions = "forbid" |
| 179 |
single_use_lifetimes = "warn" |
| 180 |
trivial_numeric_casts = "warn" |
| 181 |
unit_bindings = "warn" |
| 182 |
unnameable_types = "warn" |
| 183 |
unreachable_pub = "warn" |
| 184 |
unsafe_code = "forbid" |
| 185 |
unsafe_op_in_unsafe_fn = "forbid" |
| 186 |
unused_import_braces = "warn" |
| 187 |
unused_lifetimes = "warn" |
| 188 |
unused_macro_rules = "warn" |
| 189 |
unused_qualifications = "warn" |
| 190 |
variant_size_differences = "warn" |
| 191 |
|
| 192 |
[lints.rust.unexpected_cfgs] |
| 193 |
level = "warn" |
| 194 |
priority = 0 |
| 195 |
check-cfg = ["cfg(nightly)"] |