-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
82 lines (65 loc) · 2.5 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 = "savvy"
description = "A simple R extension interface"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
readme = "README.md"
exclude = ["/book", "/R-package", "README.qmd"]
# Determined by `cargo msrv`
rust-version = "1.65.0"
[dependencies]
savvy-ffi = { version = "0.8.1", path = "./savvy-ffi" }
savvy-macro = { version = "0.8.1", path = "./savvy-macro" }
once_cell = "1"
num-complex = { version = "0.4.5", optional = true }
log = { version = "0.4", optional = true }
env_logger = { version = "0.11", default-features = false, optional = true }
rustversion = "1.0"
[features]
default = []
# Support complex
complex = ["num-complex", "savvy-ffi/complex"]
# Support ALTREP
altrep = ["savvy-ffi/altrep"]
# Support logger
logger = ["log", "env_logger"]
# By default, savvy provides `impl<E: std::error::Error + 'static> From<E> for Error`.
# However, this conflicts if the user implements their custom error and the
# conversion from it to savvy::Error. This flag removes the impl to allow such a
# custom error.
use-custom-error = []
savvy-test = []
[build-dependencies]
cc = "1"
[package.metadata.docs.rs]
features = ["complex", "altrep", "logger"]
[workspace.metadata.release]
tag = false # do not create tags for individual crates (e.g. "savvy-cli-v0.2.5")
[package.metadata.release]
tag = true # create a single tag for the version (e.g. "v0.2.5")
pre-release-replacements = [
{ file = "CHANGELOG.md", search = "Unreleased", replace = "v{{version}}", min = 1 },
{ file = "CHANGELOG.md", search = "\\.\\.\\.HEAD", replace = "...{{tag_name}}", exactly = 1 },
{ file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}", min = 1 },
{ file = "CHANGELOG.md", search = "<!-- next-header -->", replace = "<!-- next-header -->\n## [Unreleased] (ReleaseDate)\n", exactly = 1 },
{ file = "CHANGELOG.md", search = "<!-- next-url -->", replace = "<!-- next-url -->\n[Unreleased]: https://github.com/yutannihilation/savvy/compare/{{tag_name}}...HEAD", exactly = 1 },
]
[package.metadata.dist]
dist = false
[workspace]
members = ["savvy-macro", "savvy-bindgen", "savvy-cli", "savvy-ffi", "xtask"]
resolver = "2"
[workspace.package]
version = "0.8.1"
edition = "2021"
authors = ["Hiroaki Yutani"]
license = "MIT"
repository = "https://github.com/yutannihilation/savvy/"
homepage = "https://yutannihilation.github.io/savvy/guide/"
# The profile that 'cargo dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"