Skip to content
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

Deprecate the in-tree url crate #15874

Closed
brson opened this issue Jul 21, 2014 · 6 comments · Fixed by #16076
Closed

Deprecate the in-tree url crate #15874

brson opened this issue Jul 21, 2014 · 6 comments · Fixed by #16076
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@brson
Copy link
Contributor

brson commented Jul 21, 2014

Users should use the cargo-ified https://github.com/servo/rust-url.

Deprecate for a release or two then delete.

cc @SimonSapin

@brson brson added the A-libs label Jul 21, 2014
@SimonSapin
Copy link
Contributor

👍

@brson brson added the E-easy label Jul 21, 2014
@SimonSapin
Copy link
Contributor

Related: #10707

@SimonSapin
Copy link
Contributor

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 extern crate line. Is there another way to achieve this, or do I need to annotate individual items in the crate?

@alexcrichton
Copy link
Member

That should have worked, but you may need to remove the #![experimental] annotation above (they may be conflicting).

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).

@SimonSapin
Copy link
Contributor

Removing #![experimental] worked, thanks.

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. http vs data) which is a bit unusual. I believe this sufficient to make migration straightforward, but I’m obviously biased. Any feedback on the documentation is welcome. (I’ll make the deprecation message include the documentation’s URL, it seems more useful landing page than the github repo.)

@alexcrichton
Copy link
Member

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.

SimonSapin added a commit to SimonSapin/rust that referenced this issue Jul 30, 2014
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
bors added a commit that referenced this issue Jul 31, 2014
The replacement is [rust-url](https://github.com/servo/rust-url), which can be used with Cargo.

Fix #15874
Fix #10707
Close #10706
Close #10705
Close #8486
bors added a commit to rust-lang-ci/rust that referenced this issue Nov 16, 2023
…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. 😅
lnicola pushed a commit to lnicola/rust that referenced this issue Jan 3, 2024
…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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants