-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathCargo.toml
234 lines (211 loc) Β· 6.98 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
[package]
name = "artichoke"
version = "0.1.0-pre.0"
authors = ["Ryan Lopopolo <rjl@hyperbo.la>"]
description = """
artichoke is an implementation of the Ruby programming language.
"""
keywords = ["artichoke", "artichoke-ruby", "mri", "cruby", "ruby"]
categories = ["command-line-utilities"]
readme = "README.md"
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
[dependencies]
[dependencies.artichoke-backend]
version = "0.26.0"
path = "artichoke-backend"
default-features = false
[dependencies.artichoke-readline]
version = "1.2.0"
path = "artichoke-readline"
optional = true
[dependencies.artichoke-repl-history]
version = "2.0.0"
path = "artichoke-repl-history"
optional = true
[dependencies.clap]
version = "4.3.19"
optional = true
default-features = false
features = ["std", "help", "usage", "error-context", "suggestions"]
# XXX: load-bearing unused dependency.
#
# `rustyline` improperly declares its minimum version on `log` as `0.4` despite
# requiring `>=0.4.5` to compile. Link in at least the minimum version here so
# cargo pulls in at least 0.4.5, e.g. when using `-Zminimal-versions`.
#
# Upstream has not been willing to merge a patch to fix this, so hack around it
# here.
#
# See: https://github.com/kkawakam/rustyline/pull/583
[dependencies.log]
version = "0.4.19"
optional = true
[dependencies.rustyline]
version = "15.0.0"
optional = true
default-features = false
features = ["with-file-history"]
[dependencies.scolapasta-path]
version = "0.5.1"
path = "scolapasta-path"
optional = true
[dependencies.scolapasta-string-escape]
version = "0.3.0"
path = "scolapasta-string-escape"
optional = true
default-features = false
[dependencies.termcolor]
version = "1.1.0"
optional = true
[build-dependencies]
[build-dependencies.tz-rs]
version = "0.7.0"
default-features = false
features = ["std"]
[[bin]]
name = "airb"
path = "src/bin/airb.rs"
required-features = ["cli"]
[[bin]]
name = "artichoke"
path = "src/bin/artichoke.rs"
required-features = ["cli"]
[workspace]
members = ["artichoke-*", "mezzaluna-*", "scolapasta-*", "spinoso-*"]
[workspace.package]
edition = "2024"
rust-version = "1.85.0"
license = "MIT"
repository = "https://github.com/artichoke/artichoke"
homepage = "https://github.com/artichoke/artichoke"
documentation = "https://artichoke.github.io/artichoke/artichoke/"
[profile.release]
codegen-units = 1
lto = true
strip = true
[features]
default = ["backtrace", "cli", "kitchen-sink"]
# Enable a CLI frontend for Artichoke, including a `ruby`-equivalent CLI and
# REPL.
cli = [
"backtrace",
"dep:artichoke-readline",
"dep:artichoke-repl-history",
"dep:clap",
"dep:log",
"dep:rustyline",
"dep:scolapasta-path",
"dep:scolapasta-string-escape",
]
# Enable a module for formtting backtraces from Ruby exceptions.
backtrace = ["dep:termcolor"]
# Enable all features of Ruby Core, Standard Library, and the underlying VM.
kitchen-sink = [
"core-full",
"load-path-native-file-system-loader",
"load-path-rubylib-native-file-system-loader",
"stdlib-full",
]
# Enable every API in Ruby Core
core-full = [
"core-env",
"core-env-system",
"core-math",
"core-math-full",
"core-random",
"core-regexp",
"core-regexp-oniguruma",
"core-time",
"core-time-local",
]
# Enable resolving environment variables with the `ENV` core object.
core-env = ["artichoke-backend/core-env"]
# Enable resolving environment variables with the `ENV` core object using native
# OS APIs. This feature replaces the in-memory backend with `std::env`.
core-env-system = ["core-env", "artichoke-backend/core-env-system"]
# Enable the `Math` module in Ruby Core.
core-math = ["artichoke-backend/core-math"]
# Enable an extra dependency on `libm` to implement some `Math` core APIs for
# functions not present in `std`.
core-math-full = ["core-math", "artichoke-backend/core-math-full"]
# Implement the `Random` core class and add an interpreter-default PRNG to
# Artichoke. This feature adds dependencies on `rand_core` and `rand_pcg`.
core-random = ["artichoke-backend/core-random"]
# Implement the `Regexp` and `MatchData` core classes. This feature adds a
# dependency on `regex`.
core-regexp = ["artichoke-backend/core-regexp"]
# Enable an oniguruma engine backend to the `Regexp` core class. With this
# feature, Regexp patterns must be parsable by oniguruma regardless of the
# backend they execute on. The `regex` crate backend remains the default as long
# as it can parse the given pattern.
core-regexp-oniguruma = [
"core-regexp",
"artichoke-backend/core-regexp-oniguruma",
]
# Implement the `Time` core class. This feature adds dependencies on `tz-rs` and
# `tzdb`.
core-time = ["artichoke-backend/core-time"]
core-time-local = ["artichoke-backend/core-time-local"]
# Extend the Artichoke virtual file system to have native/host access.
#
# This feature enables requiring sources from local disk.
load-path-native-file-system-loader = [
"artichoke-backend/load-path-native-file-system-loader",
]
# Extend the Artichoke virtual file system to search a path separator-delimited
# list of paths for Ruby sources by parsing the `RUBYLIB` environment variable.
#
# This feature enables requiring sources from local disk.
load-path-rubylib-native-file-system-loader = [
"load-path-native-file-system-loader",
"artichoke-backend/load-path-rubylib-native-file-system-loader",
]
# Override the `stdout` and `stdin` streams to write to an in-memory buffer.
output-strategy-capture = ["artichoke-backend/output-strategy-capture"]
# Override the `stdout` and `stdin` streams to write to be discarded.
# `output-strategy-null` implies the `output-strategy-capture` feature.
output-strategy-null = [
"output-strategy-capture",
"artichoke-backend/output-strategy-null",
]
# Enable every integrated standard library package.
stdlib-full = [
"stdlib-abbrev",
"stdlib-base64",
"stdlib-cmath",
"stdlib-delegate",
"stdlib-forwardable",
"stdlib-json",
"stdlib-monitor",
"stdlib-ostruct",
"stdlib-securerandom",
"stdlib-set",
"stdlib-shellwords",
"stdlib-strscan",
"stdlib-time",
"stdlib-uri",
]
stdlib-abbrev = ["artichoke-backend/stdlib-abbrev"]
stdlib-base64 = ["artichoke-backend/stdlib-base64"]
stdlib-cmath = ["artichoke-backend/stdlib-cmath"]
stdlib-delegate = ["artichoke-backend/stdlib-delegate"]
stdlib-forwardable = ["artichoke-backend/stdlib-forwardable"]
stdlib-json = ["artichoke-backend/stdlib-json"]
stdlib-monitor = ["artichoke-backend/stdlib-monitor"]
stdlib-ostruct = ["artichoke-backend/stdlib-ostruct"]
# Implement the `SecureRandom` Standard Library package. This feature adds
# dependencies on `base64`, `rand`, `rand_core`.
stdlib-securerandom = ["artichoke-backend/stdlib-securerandom"]
stdlib-set = ["artichoke-backend/stdlib-set"]
stdlib-shellwords = ["artichoke-backend/stdlib-shellwords"]
stdlib-strscan = ["artichoke-backend/stdlib-strscan"]
stdlib-time = ["artichoke-backend/stdlib-time"]
stdlib-uri = ["artichoke-backend/stdlib-uri"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]