fix: cannot build clap/wrap_help in web (#1253)

This commit is contained in:
Myriad-Dreamin 2025-02-02 16:25:33 +08:00 committed by GitHub
parent 5069a89d5d
commit 7b8739487e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 4 deletions

View file

@ -157,7 +157,7 @@ lsp-types = { version = "=0.95.0", features = ["proposed"] }
sync-lsp = { path = "./crates/sync-lsp", features = ["clap"] }
# CLI
clap = { version = "4.5", features = ["derive", "env", "unicode", "wrap_help"] }
clap = { version = "4.5", features = ["derive", "env", "unicode"] }
clap_builder = { version = "4.5", features = ["string"] }
clap_complete = "4.5"
clap_complete_fig = "4.5"

View file

@ -39,7 +39,7 @@ insta.workspace = true
[features]
default = ["cli", "embed-fonts", "no-content-hint"]
cli = ["clap"]
cli = ["clap", "clap/wrap_help"]
# Embeds Typst's default fonts for
# - text (Linux Libertine),

View file

@ -85,7 +85,7 @@ walkdir.workspace = true
[features]
default = ["cli", "embed-fonts", "no-content-hint", "preview"]
cli = ["sync-lsp/clap"]
cli = ["sync-lsp/clap", "clap/wrap_help"]
dhat-heap = ["dhat"]

View file

@ -38,7 +38,8 @@ regex.workspace = true
[features]
default = ["cli", "embed-fonts", "no-content-hint"]
cli = ["clap"]
clap = ["dep:clap"]
cli = ["clap", "clap/wrap_help"]
# Embeds Typst's default fonts for
# - text (Linux Libertine),