-
Notifications
You must be signed in to change notification settings - Fork 53
/
Cargo.toml
113 lines (98 loc) · 3.11 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[package]
name = "turtle"
version = "1.0.0-rc.4"
authors = ["Sunjay Varma <[email protected]>"]
description = "Learn the Rust language by creating animated drawings!"
homepage = "http://turtle.rs"
repository = "https://github.com/sunjay/turtle"
readme = "README.md"
keywords = ["turtle", "graphics", "drawing", "teaching", "beginner"]
# crates.io/category_slugs
categories = ["rendering", "rendering::graphics-api", "rendering::engine", "games", "gui"]
license = "MPL-2.0"
edition = "2018"
# Make sure docs are always generated with the "unstable" feature activated
[package.metadata.docs.rs]
features = [ "unstable" ]
[badges]
# Azure DevOps: `project` is required. `pipeline` is required. `build` is optional; default is `1`
# Note: project = `organization/project`, pipeline = `name_of_pipeline`, build = `definitionId`
azure-devops = { project = "sunjayv/turtle", pipeline = "sunjay.turtle" }
# Codecov: `repository` is required. `branch` is optional; default is `master`
# `service` is optional; valid values are `github` (default), `bitbucket`, and `gitlab`.
# codecov = { repository = "sunjay/turtle", branch = "master", service = "github" }
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
interpolation = "0.2"
rand = "0.8"
svg = "0.10"
pathfinder_canvas = "0.5"
# These versions must stay synced with the dependencies of pathfinder_canvas
pathfinder_renderer = "0.5"
pathfinder_resources = "0.5"
pathfinder_color = "0.5"
pathfinder_geometry = "0.5"
pathfinder_gl = "0.5"
glutin = "0.27"
gl = "0.14"
ipc-channel = "0.15"
thiserror = "1.0"
once_cell = "1.5"
cfg-if = "1.0"
parking_lot = "0.11"
[dependencies.futures-util]
version = "0.3"
default-features = false
features = [
"channel",
]
[dependencies.tokio]
version = "0.2"
default-features = false
features = [
"process",
"io-std",
"io-util",
"rt-threaded",
"blocking",
"sync",
"stream",
"time",
"macros",
]
# Dependencies used when developing `turtle` directly, but not when using it as
# a library.
[dev-dependencies]
bitvec = "0.22"
chrono = "0.4"
# Since the debug performance of turtle isn't all that great, we recommend that
# every user of turtle add the following to their Cargo.toml
#
# [profile.dev.package."*"]
# opt-level = 3
#
# This increases initial compile time a bit, but after that the library will
# always work performantly even if the user's code itself is in debug mode still
#
# The following setting mimics that for the debug build of this crate.
# We don't use `.package."*"` because the turtle crate *is* the package that
# would be optimized with that setting in an application that uses this crate.
[profile.dev]
opt-level = 3
[features]
# The reason we do this is because doctests don't get cfg(test)
# See: https://github.com/rust-lang/cargo/issues/4669
#
# This allows us to write attributes like the following and have it work
# in all tests.
#
# #[cfg(any(feature = "test", test))]
#
# NOTE: This means that tests MUST be run with:
# cargo test --features "test"
test = []
# Feature flag to disable unstable features by default.
#
# Users of the crate must explicitly opt-in to activate them.
unstable = []