forked from savage13/agg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
82 lines (68 loc) · 2.21 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[package]
name = "agrega"
description = "High-quality 2D graphics engine based on Anti-grain Geometry"
version = "0.1.1"
edition = "2021"
rust-version = "1.82.0" # sync with README.md
authors = [
"Maxim Shemanarev (McSeem)",
"Brian Savage <[email protected]>",
"jarris2268",
"José Luis Cruz <[email protected]>",
]
repository = "https://github.com/andamira/agrega"
# BSD-2-Clause: Required for the original and any base code.
# Apache-2.0 or MIT: Apply only to the new modifications.
license = "BSD-2-Clause OR Apache-2.0 OR MIT"
include = [
"/src/**/*.rs", "/src/**/*.md",
"/Cargo.toml",
"/LICENSE*",
]
categories = ["rendering::graphics-api", "no-std"]
keywords = ["2d", "graphics"]
publish = true
[features]
# ==============================================================================
# environment
# ------------------------------
std = ["alloc", "devela/std"]
alloc = ["devela/alloc"]
no_std = ["devela/libm"]
# safety
# ------------------------------
safe = []
unsafe = []
# nightly
# ------------------------------
nightly = [
"nightly_doc",
] # enables all the following features:
# WAIT: [doc_cfg](https://github.com/rust-lang/rust/issues/43781)
# WAIT: [doc_notable_trait](https://github.com/rust-lang/rust/issues/45040)
nightly_doc = []
# capabilities
# ------------------------------
default = ["alloc"] # for now, almost everything depends on alloc
text = ["std", "freetype"]
# The most complete versions of the documentation:
_docsrs = ["nightly", "std", "freetype"]
freetype = ["dep:freetype-rs", "alloc"]
[dependencies]
# ==============================================================================
devela = { version = "0.21.2", features = ["_float_f32", "_float_f64"] }
freetype-rs = { version = "0.37", optional = true }
[dependencies.image]
version = "0.25.4"
default-features = false
features = ["png", "pnm", "bmp", "jpeg"]
[package.metadata.docs.rs]
# ==============================================================================
no-default-features = true
features = ["_docsrs"]
rustdoc-args = [ "--html-in-header", "./DOCS/rustdoc-header.html" ]
# examples
# ==============================================================================
[[example]]
name = "triangle"
required-features = ["std"]