-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Deprecate the in-tree url crate #15874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
👍 |
Related: #10707 |
I tried this: diff --git a/src/liburl/lib.rs b/src/liburl/lib.rs
index b95fc3c..548ef46 100644
--- a/src/liburl/lib.rs
+++ b/src/liburl/lib.rs
@@ -21,6 +21,8 @@
html_playground_url = "http://play.rust-lang.org/")]
#![feature(default_type_params)]
+#![deprecated="This is being removed. Use rust-url instead. https://github.com/servo/rust-url"]
+
use std::collections::HashMap;
use std::fmt;
use std::from_str::FromStr; Hoping to deprecate the whole crate, but then building this program does not emit any warning: extern crate url;
use url::Url;
fn main() {
Url::parse("").unwrap();
} I expected a deprecation warning on the |
That should have worked, but you may need to remove the I would also personally find it very helpful to annotate methods in particular what the path forward is (or just a general post about how to migrate). |
Removing Should this deprecation go through the RFC process, or can I assume that the team wants it since @brson filed this issue? The documentation at http://servo.github.io/rust-url/ explains how to use rust-url, and in particular the concept of relative v.s. non-relative URL schemes (e.g. |
Having an issue is sometimes considered a "todo item" rather than "everyone has approved this", you'll find both styles of issues on the issue tracker. We don't have much precedent for deprecating an in-tree crate, so we're forging new territory here. I'd like to start moving crates out of the repo, however, so I hope to have some more on this topic soon. |
The replacement is [rust-url](https://github.com/servo/rust-url), which can be used with Cargo. Fix rust-lang#15874 Fix rust-lang#10707 Close rust-lang#10706 Close rust-lang#10705 Close rust-lang#8486
…e-4, r=Veykril internal: Migrate assists to the structured snippet API, part 4 Continuing from rust-lang#15260 Migrates the following assists: - `add_turbo_fish` - `add_type_ascription` - `destructure_tuple_binding` - `destructure_tuple_binding_in_subpattern` I did this a while ago, but forgot to make a PR for the changes until now. 😅
…e-5, r=Veykril internal: Migrate assists to the structured snippet API, part 5 Continuing from rust-lang#15874 Migrates the following assists: - `extract_variable` - `generate_function` - `replace_is_some_with_if_let_some` - `replace_is_ok_with_if_let_ok`
Users should use the cargo-ified https://github.com/servo/rust-url.
Deprecate for a release or two then delete.
cc @SimonSapin
The text was updated successfully, but these errors were encountered: