mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 10:40:54 +00:00
8b6e982495
This PR removes the need for writing manual mappings in the `FromStr` implementation for the `StorySelector` enum used in the storybook CLI. We are now using the [`EnumString`](https://docs.rs/strum/0.25.0/strum/derive.EnumString.html) trait from `strum` to automatically derive snake_cased names for the enums. This will cut down on some of the manual work needed to wire up more stories to the storybook. Release Notes: - N/A
26 lines
595 B
TOML
26 lines
595 B
TOML
[package]
|
|
name = "storybook"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[[bin]]
|
|
name = "storybook"
|
|
path = "src/storybook.rs"
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
clap = { version = "3.1", features = ["derive"] }
|
|
gpui2 = { path = "../gpui2" }
|
|
log.workspace = true
|
|
rust-embed.workspace = true
|
|
serde.workspace = true
|
|
settings = { path = "../settings" }
|
|
simplelog = "0.9"
|
|
strum = { version = "0.25.0", features = ["derive"] }
|
|
theme = { path = "../theme" }
|
|
ui = { path = "../ui" }
|
|
util = { path = "../util" }
|
|
|
|
[dev-dependencies]
|
|
gpui2 = { path = "../gpui2", features = ["test-support"] }
|