Remove the unstable std_unicode crate, deprecated since 1.27
Its former contents are now in libcore.
This commit is contained in:
parent
54628c8ea8
commit
d8b3c830fb
|
@ -2615,18 +2615,9 @@ dependencies = [
|
||||||
"rustc_lsan 0.0.0",
|
"rustc_lsan 0.0.0",
|
||||||
"rustc_msan 0.0.0",
|
"rustc_msan 0.0.0",
|
||||||
"rustc_tsan 0.0.0",
|
"rustc_tsan 0.0.0",
|
||||||
"std_unicode 0.0.0",
|
|
||||||
"unwind 0.0.0",
|
"unwind 0.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "std_unicode"
|
|
||||||
version = "0.0.0"
|
|
||||||
dependencies = [
|
|
||||||
"compiler_builtins 0.0.0",
|
|
||||||
"core 0.0.0",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "string_cache"
|
name = "string_cache"
|
||||||
version = "0.7.3"
|
version = "0.7.3"
|
||||||
|
|
|
@ -157,7 +157,6 @@ pub fn std_cargo(builder: &Builder,
|
||||||
cargo.arg("--features").arg("c mem")
|
cargo.arg("--features").arg("c mem")
|
||||||
.args(&["-p", "alloc"])
|
.args(&["-p", "alloc"])
|
||||||
.args(&["-p", "compiler_builtins"])
|
.args(&["-p", "compiler_builtins"])
|
||||||
.args(&["-p", "std_unicode"])
|
|
||||||
.arg("--manifest-path")
|
.arg("--manifest-path")
|
||||||
.arg(builder.src.join("src/rustc/compiler_builtins_shim/Cargo.toml"));
|
.arg(builder.src.join("src/rustc/compiler_builtins_shim/Cargo.toml"));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -856,7 +856,6 @@ impl Step for Src {
|
||||||
"src/librustc_msan",
|
"src/librustc_msan",
|
||||||
"src/librustc_tsan",
|
"src/librustc_tsan",
|
||||||
"src/libstd",
|
"src/libstd",
|
||||||
"src/libstd_unicode",
|
|
||||||
"src/libunwind",
|
"src/libunwind",
|
||||||
"src/rustc/compiler_builtins_shim",
|
"src/rustc/compiler_builtins_shim",
|
||||||
"src/rustc/libc_shim",
|
"src/rustc/libc_shim",
|
||||||
|
|
|
@ -489,7 +489,7 @@ impl Step for Std {
|
||||||
// Keep a whitelist so we do not build internal stdlib crates, these will be
|
// Keep a whitelist so we do not build internal stdlib crates, these will be
|
||||||
// build by the rustc step later if enabled.
|
// build by the rustc step later if enabled.
|
||||||
cargo.arg("--no-deps");
|
cargo.arg("--no-deps");
|
||||||
for krate in &["alloc", "core", "std", "std_unicode"] {
|
for krate in &["alloc", "core", "std"] {
|
||||||
cargo.arg("-p").arg(krate);
|
cargo.arg("-p").arg(krate);
|
||||||
// Create all crate output directories first to make sure rustdoc uses
|
// Create all crate output directories first to make sure rustdoc uses
|
||||||
// relative links.
|
// relative links.
|
||||||
|
|
|
@ -22,7 +22,6 @@ core = { path = "../libcore" }
|
||||||
libc = { path = "../rustc/libc_shim" }
|
libc = { path = "../rustc/libc_shim" }
|
||||||
compiler_builtins = { path = "../rustc/compiler_builtins_shim" }
|
compiler_builtins = { path = "../rustc/compiler_builtins_shim" }
|
||||||
profiler_builtins = { path = "../libprofiler_builtins", optional = true }
|
profiler_builtins = { path = "../libprofiler_builtins", optional = true }
|
||||||
std_unicode = { path = "../libstd_unicode" }
|
|
||||||
unwind = { path = "../libunwind" }
|
unwind = { path = "../libunwind" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
[package]
|
|
||||||
authors = ["The Rust Project Developers"]
|
|
||||||
name = "std_unicode"
|
|
||||||
version = "0.0.0"
|
|
||||||
|
|
||||||
[lib]
|
|
||||||
name = "std_unicode"
|
|
||||||
path = "lib.rs"
|
|
||||||
test = false
|
|
||||||
bench = false
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
core = { path = "../libcore" }
|
|
||||||
compiler_builtins = { path = "../rustc/compiler_builtins_shim" }
|
|
|
@ -1,36 +0,0 @@
|
||||||
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
|
|
||||||
// file at the top-level directory of this distribution and at
|
|
||||||
// http://rust-lang.org/COPYRIGHT.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
||||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
||||||
// option. This file may not be copied, modified, or distributed
|
|
||||||
// except according to those terms.
|
|
||||||
|
|
||||||
//! # The Unicode Library
|
|
||||||
//!
|
|
||||||
//! Unicode-intensive functions for `char` and `str` types.
|
|
||||||
//!
|
|
||||||
//! This crate provides a collection of Unicode-related functionality,
|
|
||||||
//! including decompositions, conversions, etc., and provides traits
|
|
||||||
//! implementing these functions for the `char` and `str` types.
|
|
||||||
//!
|
|
||||||
//! The functionality included here is only that which is necessary to
|
|
||||||
//! provide for basic string-related manipulations. This crate does not
|
|
||||||
//! (yet) aim to provide a full set of Unicode tables.
|
|
||||||
|
|
||||||
#![unstable(feature = "unicode", issue = "27783")]
|
|
||||||
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
|
||||||
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
|
|
||||||
html_root_url = "https://doc.rust-lang.org/nightly/",
|
|
||||||
html_playground_url = "https://play.rust-lang.org/",
|
|
||||||
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
|
|
||||||
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
|
|
||||||
#![no_std]
|
|
||||||
|
|
||||||
#![feature(unicode_internals)]
|
|
||||||
#![feature(staged_api)]
|
|
||||||
#![rustc_deprecated(since = "1.27.0", reason = "moved into libcore")]
|
|
||||||
|
|
||||||
pub use core::unicode::*;
|
|
Loading…
Reference in a new issue