Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

Add rustc-dep-of-std feature - #188

Merged
zesterer merged 1 commit into
zesterer:masterfrom
s-arash:rustc-dep-of-std
May 12, 2026
Merged

zesterer merged 1 commit into
zesterer:masterfrom
s-arash:rustc-dep-of-std

Conversation

@s-arash

@s-arash s-arash commented May 7, 2026

Copy link
Copy Markdown
Contributor

This feature allows this crate to be used as a dependency of the Rust standard library. My use case is in the implementation of the x86_64-fortanix-unknown-sgx target of the standard library. See https://github.com/fortanix/rust-sgx/tree/arash/insecure-time-rustc-dep-of-std. Note that insecure-time is a dependency of the standard library for the SGX target.

The pattern of introducing a rustc-dep-of-std feature seems to be the standard way of going about it. Here is an example: https://github.com/rust-lang/cfg-if/blob/main/Cargo.toml

@zesterer

Copy link
Copy Markdown
Owner

Thanks! This seems to match up with other crates I know to be in a similar situation, like hashbrown

@zesterer
zesterer merged commit f692eee into zesterer:master May 12, 2026
7 checks passed
@zesterer

Copy link
Copy Markdown
Owner

Are you looking for a new release for this?

@s-arash

s-arash commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

Awesome! Thanks for the quick response.

Are you looking for a new release for this?

Yes, I'd really appreciate a new release, so that I can make a new release of insecure-time.

@zesterer

Copy link
Copy Markdown
Owner

0.11.0 has now been released. Cheers!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants