-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
specta::export
to `specta_util::export
- Loading branch information
1 parent
d1bfae8
commit 0b38b6a
Showing
14 changed files
with
47 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[package] | ||
name = "specta-util" | ||
description = "" # TODO | ||
version = "0.0.1" | ||
authors = ["Oscar Beaumont <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
repository = "https://github.com/oscartbeaumont/specta" | ||
documentation = "https://docs.rs/specta-util/latest/specta-util" | ||
keywords = ["async", "specta", "rspc", "typescript", "typesafe"] | ||
categories = ["web-programming", "asynchronous"] | ||
|
||
[[example]] | ||
name = "export" | ||
required-features = ["export", "typescript"] | ||
|
||
[features] | ||
default = [] | ||
|
||
#! Features | ||
## Support for collecting up a global type map | ||
export = ["dep:ctor", "specta-macros/export"] | ||
|
||
# TODO: Really it would be nice to avoid lanagues in here??? | ||
#! Languages | ||
## Support for [TypeScript](https://www.typescriptlang.org) language exporting | ||
typescript = [] | ||
|
||
[dependencies] | ||
specta = { path = "../../" } | ||
specta-macros = { path = "../../macros" } | ||
ctor = { version = "0.2.4", optional = true } | ||
once_cell = "1.18.0" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#![forbid(unsafe_code)] | ||
#![warn(clippy::all, clippy::unwrap_used, clippy::panic)] // TODO: missing_docs | ||
#![cfg_attr(docsrs2, feature(doc_cfg))] | ||
#![doc( | ||
html_logo_url = "https://github.com/oscartbeaumont/specta/raw/main/.github/logo-128.png", | ||
html_favicon_url = "https://github.com/oscartbeaumont/specta/raw/main/.github/logo-128.png" | ||
)] | ||
|
||
/// Provides the global type store and a method to export them to other languages. | ||
#[cfg(feature = "export")] | ||
#[cfg_attr(docsrs2, doc(cfg(feature = "export")))] | ||
pub mod export; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters