From ef17837488c40c2134af0b7bfa749c0ff7963705 Mon Sep 17 00:00:00 2001 From: Artyom Pavlov Date: Wed, 14 Aug 2019 22:53:21 +0000 Subject: [PATCH] add rustc-dep-of-std feature --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 99ac2b9..8ea9d3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,13 @@ readme = "README.md" documentation = "https://docs.rs/wasi" [dependencies] +# When built as part of libstd +compiler_builtins = { version = "0.1", optional = true } +core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" } + +[features] +# Unstable feature to support being a libstd dependency +rustc-dep-of-std = ["compiler_builtins", "core"] [badges] maintenance = { status = "experimental" }