Cargo.toml 1.72 KB
Newer Older
Dylan Ede's avatar
Dylan Ede committed
1
2
[package]
name = "rusttype"
Alex Butler's avatar
Alex Butler committed
3
version = "0.7.4"
Jeremy Soller's avatar
0.2.2    
Jeremy Soller committed
4
5
authors = [
    "Dylan Ede <dylanede@googlemail.com>",
Alex Butler's avatar
0.6.0    
Alex Butler committed
6
7
    "Jeremy Soller <jackpot51@gmail.com>",
    "Alex Butler <alexheretic@gmail.com>",
Jeremy Soller's avatar
0.2.2    
Jeremy Soller committed
8
]
Alex Butler's avatar
Alex Butler committed
9
edition = "2018"
Dylan Ede's avatar
Dylan Ede committed
10
11
12
13
description = """
A pure Rust alternative to libraries like FreeType.

RustType provides an API for loading, querying and rasterising TrueType fonts.
14
15

It also provides an implementation of a dynamic GPU glyph cache for hardware font rendering.
Dylan Ede's avatar
Dylan Ede committed
16
"""
Andrey Lesnikov's avatar
Andrey Lesnikov committed
17
documentation = "https://docs.rs/rusttype"
Jeremy Soller's avatar
Jeremy Soller committed
18
19
homepage = "https://gitlab.redox-os.org/redox-os/rusttype"
repository = "https://gitlab.redox-os.org/redox-os/rusttype"
Dylan Ede's avatar
Dylan Ede committed
20
21
22
readme = "README.md"
license = "MIT / Apache-2.0"
keywords = ["font", "truetype", "opentype", "ttf", "otf"]
Jeremy Soller's avatar
0.2.3    
Jeremy Soller committed
23
exclude = ["/fonts/**"]
Dylan Ede's avatar
Dylan Ede committed
24

tinaun's avatar
tinaun committed
25
26
27
[package.metadata.docs.rs]
features = ["gpu_cache"]

Dylan Ede's avatar
Dylan Ede committed
28
[dependencies]
29
arrayvec = { version = "0.4", default-features = false }
30
stb_truetype = "0.2.2"
Alex Butler's avatar
Alex Butler committed
31
ordered-float = "1"
32
approx = { version = "0.3", default-features = false }
33

34
linked-hash-map = { version = "0.5", optional = true }
35
rustc-hash = { version = "1", optional = true }
Alex Butler's avatar
Alex Butler committed
36
crossbeam-deque = { version = "0.7", optional = true }
Alex Butler's avatar
Alex Butler committed
37
crossbeam-utils = { version = "0.6", optional = true }
38
num_cpus = { version = "1.0", optional = true }
39
40

[dev-dependencies]
Alex Butler's avatar
Alex Butler committed
41
glium = "0.23"
Alex Butler's avatar
Alex Butler committed
42
image = { version = "0.21", default-features = false, features = ["png_codec"] }
Alex Butler's avatar
Alex Butler committed
43
44
lazy_static = "1"
unicode-normalization = "0.1"
Alex Butler's avatar
Alex Butler committed
45
blake2 = "0.8"
46
47
48

[features]
# Compiles benchmark code, to be avoided normally as this currently requires nightly rust
49
bench = ["gpu_cache"]
50
gpu_cache = ["linked-hash-map", "rustc-hash", "crossbeam-deque", "crossbeam-utils", "num_cpus"]
51
52
53
54
55

[[example]]
name = "gpu_cache"
required-features = ["gpu_cache"]

56
57
58
[[example]]
name = "image"

59
60
[[example]]
name = "simple"