mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 15:58:30 +08:00
Reorganize cargo dependencies and upgrade most of them (#1815)
* Reorganize cargo dependencies and upgrade most * cargo update * Attempt 2 * Polishing changes * Comment out specta typescript flag-dependent code * Fix test
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "dyn-any"
|
||||
version = "0.3.1"
|
||||
rust-version = "1.66.0"
|
||||
rust-version = "1.70.0"
|
||||
edition = "2021"
|
||||
authors = ["Graphite Authors <contact@graphite.rs>"]
|
||||
description = "An Any trait that works for arbitrary lifetimes"
|
||||
@@ -11,22 +11,25 @@ homepage = "https://graphite.rs/libraries/dyn-any"
|
||||
repository = "https://github.com/GraphiteEditor/Graphite/tree/master/libraries/dyn-any"
|
||||
documentation = "https://docs.rs/dyn-any"
|
||||
|
||||
[dependencies]
|
||||
dyn-any-derive = { path = "derive", version = "0.3.0", optional = true }
|
||||
log = { version = "0.4", optional = true }
|
||||
glam = { version = "0.25", optional = true, default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std", "large-atomics"]
|
||||
std = ["alloc", "rc", "glam/default"]
|
||||
large-atomics = []
|
||||
alloc = []
|
||||
derive = ["dyn-any-derive"]
|
||||
log-bad-types = ["log"]
|
||||
# Opt into impls for Rc<T> and Arc<T>.
|
||||
rc = []
|
||||
# Opt into impls for some glam types
|
||||
glam = ["dep:glam"]
|
||||
alloc = []
|
||||
large-atomics = []
|
||||
std = ["alloc", "rc", "glam/default"]
|
||||
default = ["std", "large-atomics"]
|
||||
|
||||
[dependencies]
|
||||
# Optional local dependencies
|
||||
dyn-any-derive = { path = "derive", optional = true }
|
||||
|
||||
# Optional dependencies
|
||||
log = { version = "0.4", optional = true }
|
||||
glam = { version = "0.25", optional = true, default-features = false }
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
|
||||
@@ -14,6 +14,7 @@ readme = "../README.md"
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
# Workspace dependencies
|
||||
proc-macro2 = { workspace = true }
|
||||
quote = { workspace = true }
|
||||
syn = { workspace = true, default-features = false, features = [
|
||||
@@ -25,4 +26,5 @@ syn = { workspace = true, default-features = false, features = [
|
||||
] }
|
||||
|
||||
[dev-dependencies]
|
||||
# Local dependencies
|
||||
dyn-any = { path = "..", features = ["derive"] }
|
||||
|
||||
Reference in New Issue
Block a user