forked from taiki-e/auto_enums
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
89 lines (67 loc) · 2.93 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
[package]
name = "auto_enums"
version = "0.6.3"
authors = ["Taiki Endo <[email protected]>"]
edition = "2018"
license = "Apache-2.0/MIT"
repository = "https://github.com/taiki-e/auto_enums"
documentation = "https://docs.rs/auto_enums/"
keywords = ["enum", "macros", "derive", "attribute"]
categories = ["rust-patterns"]
readme = "README.md"
description = """
A library for to allow multiple return types by automatically generated enum.
"""
[workspace]
members = ["core", "derive", "test_suite"]
[dependencies]
auto_enums_core = { version = "=0.6.3", path = "core", default-features = false }
auto_enums_derive = { version = "=0.6.3", path = "derive", default-features = false }
[dev-dependencies]
compiletest = { version = "0.3.22", package = "compiletest_rs", features = ["stable", "tmp"] }
[features]
# Default features.
default = ["std"]
# Analyze return type of function and `let` binding.
type_analysis = ["auto_enums_core/type_analysis"]
# Enable to use `transpose*` methods.
transpose_methods = ["auto_enums_derive/transpose_methods"]
# ==============================================================================
# [std|core] libraries
# Enable to use `std` library's traits.
std = ["auto_enums_derive/std"]
# Enable to use `[std|core]::ops`'s `Deref`, `DerefMut`, `Index`, `IndexMut`, and `RangeBounds` traits.
ops = ["auto_enums_derive/ops"]
# Enable to use `[std|core]::convert`'s `AsRef` and `AsMut` traits.
convert = ["auto_enums_derive/convert"]
# Enable to use `[std|core]::fmt`'s traits other than `Debug`, `Display` and `Write`
fmt = ["auto_enums_derive/fmt"]
# ==============================================================================
# Using external libraries
# futures(v0.1)
futures01 = ["auto_enums_derive/futures01"]
# rayon
rayon = ["auto_enums_derive/rayon"]
# serde
serde = ["auto_enums_derive/serde"]
# ==============================================================================
# Unstable features
# These features are outside of the normal semver guarantees and require the
# `unstable` feature as an explicit opt-in to unstable API.
unstable = ["auto_enums_core/unstable", "auto_enums_derive/unstable"]
# Make `?` operator support more flexible, and to make iterator implementation more effective.
try_trait = ["auto_enums_core/try_trait", "auto_enums_derive/try_trait"]
# external libraries
# futures(v0.3+)
futures = ["auto_enums_derive/futures"]
# Enable unstable features of [std|core] libraries
# Enable to use `[std|core]::ops::Generator` trait.
generator_trait = ["auto_enums_derive/generator_trait"]
# Enable to use `[std|core]::ops`'s `Fn`, `FnMut`, and `FnOnce` traits.
fn_traits = ["auto_enums_derive/fn_traits"]
# Enable to use `[std|core]::iter::TrustedLen` trait.
trusted_len = ["auto_enums_derive/trusted_len"]
# Implements `ExactSizeIterator::is_empty`.
exact_size_is_empty = ["auto_enums_derive/exact_size_is_empty"]
# Implements `std::io::Read::read_initializer`.
read_initializer = ["auto_enums_derive/read_initializer"]