You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rest of these assume a method in the core like export<L: LanguageExt>(l: L) and a LanguageExt trait.
Reexport:
Feature flag for each language
pub use specta_{language}::Language + impl LanguageExt for Language enabled by feature flag
Dedicated crate (Eg. tauri-specta-typescript) via trait:
pub struct Language(specta_{language}::Language) + impl LanguageExt for Language. Would need to replicate all methods manually which would suck (required due to orphan rule).
Would allow sealing the specta-typescript crate.
Current method:
Feature flag for each language and the user must add the language crate (ensuring they get the versions correct)
The text was updated successfully, but these errors were encountered:
specta-rs/specta#297
Dedicated crate (Eg.
tauri-specta-typescript
) via methods:pub struct Language(specta_{language}::Language)
. Would need to replicate all config methods on langauge.Language::export_to(b: tauri_specta::Builder<R>, path: impl AsRef<Path>) -> Result<(), _>
Language::export(b: tauri_specta::Builder<R>) -> Result<String, _>
specta-typescript
crate.LanguageExt
traitThe rest of these assume a method in the core like
export<L: LanguageExt>(l: L)
and aLanguageExt
trait.Reexport:
pub use specta_{language}::Language
+impl LanguageExt for Language
enabled by feature flagDedicated crate (Eg.
tauri-specta-typescript
) via trait:pub struct Language(specta_{language}::Language)
+impl LanguageExt for Language
. Would need to replicate all methods manually which would suck (required due to orphan rule).specta-typescript
crate.Current method:
The text was updated successfully, but these errors were encountered: