-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
107 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,10 @@ jobs: | |
uses: actions/checkout@v4 | ||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Package (dry-run) | ||
run: cargo package | ||
- name: Install cargo-workspaces | ||
run: cargo install cargo-workspaces | ||
- name: Publish (dry-run) | ||
run: cargo ws publish --dry-run | ||
- name: Publish | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
|
@@ -26,4 +28,4 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Action" | ||
cargo publish | ||
cargo ws publish --from-git --yes --no-git-commit skip |
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 |
---|---|---|
@@ -1,45 +1,27 @@ | ||
[package] | ||
name = "temporal_rs" | ||
keywords = ["date", "time", "calendar", "timezone", "duration"] | ||
categories = ["date-and-time", "internationalization"] | ||
readme = "./README.md" | ||
description = "Temporal in Rust is an implementation of the TC39 Temporal Builtin Proposal in Rust." | ||
version = "0.0.4" | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"temporal_rs" | ||
] | ||
|
||
[workspace.package] | ||
edition = "2021" | ||
version = "0.0.4" | ||
rust-version = "1.80" | ||
authors = ["boa-dev"] | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/boa-dev/temporal" | ||
rust-version = "1.80" | ||
exclude = [ | ||
"docs/*", | ||
".github/*", | ||
".gitignore", | ||
"LICENSE*", | ||
] | ||
|
||
[dependencies] | ||
[workspace.dependencies] | ||
tinystr = "0.7.6" | ||
icu_calendar = { version = "1.5.2", default-features = false, features = ["compiled_data"] } | ||
rustc-hash = { version = "2.0.0", features = ["std"] } | ||
icu_calendar = { version = "1.5.2", default-features = false} | ||
rustc-hash = "2.0.0" | ||
bitflags = "2.6.0" | ||
num-traits = "0.2.19" | ||
ixdtf = { version = "0.2.0", features = ["duration"]} | ||
ixdtf = "0.2.0" | ||
iana-time-zone = "0.1.61" | ||
|
||
# log feature | ||
log = { version = "0.4.0", optional = true } | ||
|
||
# tzdb feature | ||
tzif = { version = "0.2.3", optional = true } | ||
jiff-tzdb = { version = "0.1.1", optional = true } | ||
combine = { version = "4.6.7", optional = true } | ||
|
||
# System time feature | ||
web-time = { version = "1.1.0", optional = true } | ||
|
||
[features] | ||
log = ["dep:log"] | ||
experimental = ["tzdb"] | ||
now = ["std", "dep:web-time"] | ||
tzdb = ["dep:tzif", "std", "dep:jiff-tzdb", "dep:combine"] | ||
std = [] | ||
log = "0.4.0" | ||
tzif = "0.2.3" | ||
jiff-tzdb = "0.1.1" | ||
combine = "4.6.7" | ||
web-time = "1.1.0" |
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,38 @@ | ||
[package] | ||
name = "temporal_rs" | ||
keywords = ["date", "time", "calendar", "timezone", "duration"] | ||
categories = ["date-and-time", "internationalization"] | ||
description = "Temporal in Rust is an implementation of the TC39 Temporal Builtin Proposal in Rust." | ||
version.workspace = true | ||
edition.workspace = true | ||
authors.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
rust-version.workspace = true | ||
|
||
[dependencies] | ||
tinystr.workspace = true | ||
icu_calendar = { workspace = true, features = ["compiled_data"] } | ||
rustc-hash = { workspace = true, features = ["std"] } | ||
bitflags.workspace = true | ||
num-traits.workspace = true | ||
ixdtf = { workspace = true, features = ["duration"]} | ||
iana-time-zone.workspace = true | ||
|
||
# log feature | ||
log = { workspace = true, optional = true } | ||
|
||
# tzdb feature | ||
tzif = { workspace = true, optional = true } | ||
jiff-tzdb = { workspace = true, optional = true } | ||
combine = { workspace = true, optional = true } | ||
|
||
# System time feature | ||
web-time = { workspace = true, optional = true } | ||
|
||
[features] | ||
log = ["dep:log"] | ||
experimental = ["tzdb"] | ||
now = ["std", "dep:web-time"] | ||
tzdb = ["dep:tzif", "std", "dep:jiff-tzdb", "dep:combine"] | ||
std = [] |
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,38 @@ | ||
# Temporal in Rust | ||
|
||
`Temporal` is a calendar and timezone aware date/time library that is | ||
currently being designed and proposed as a new builtin to the | ||
`ECMAScript` specification. | ||
|
||
This crate is an implementation of `Temporal` in Rust. While initially | ||
developed for `Boa`, the crate has been externalized as we intended to | ||
make an engine agnostic and general usage implementation of `Temporal` | ||
and its algorithms. | ||
|
||
## Temporal Proposal | ||
|
||
Relevent links regarding Temporal can be found below. | ||
|
||
- [Temporal Documentation](https://tc39.es/proposal-temporal/docs/) | ||
- [Temporal Proposal Specification](https://tc39.es/proposal-temporal/) | ||
- [Temporal Proposal Repository](https://github.com/tc39/proposal-temporal) | ||
|
||
## Core Maintainers | ||
- Jason Williams ([jasonwilliams](https://github.com/orgs/boa-dev/people/jasonwilliams)) | ||
- José Julián Espina ([jedel1043](https://github.com/orgs/boa-dev/people/jedel1043)) | ||
- Kevin Ness ([nekevss](https://github.com/orgs/boa-dev/people/nekevss)) | ||
- Boa Developers | ||
|
||
## Contributing | ||
|
||
This project is open source and welcomes anyone interested to participate. | ||
Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for more information. | ||
|
||
## Communication | ||
|
||
Feel free to contact us on [Matrix](https://matrix.to/#/#boa:matrix.org). | ||
|
||
## License | ||
|
||
This project is licensed under the [Apache](./LICENSE-Apache) or | ||
[MIT](./LICENSE-MIT) licenses, at your option. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.