From 4ece4777a73035b503862462984dff008db72c99 Mon Sep 17 00:00:00 2001 From: "Zach Mitchell, PhD" Date: Thu, 6 Apr 2023 16:02:33 -0400 Subject: [PATCH 1/2] Remove "extern crate" directions from README You no longer need to add `extern crate` directives for modern Rust editions. --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index b68a40e..1919734 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,6 @@ To use `glob`, add this to your `Cargo.toml`: glob = "0.3.1" ``` -And add this to your crate root: - -```rust -extern crate glob; -``` - ## Examples Print all jpg files in /media/ and all of its subdirectories. From 59f9e6b5b36ecb4d07677612510337c3f32eed53 Mon Sep 17 00:00:00 2001 From: "Zach Mitchell, PhD" Date: Tue, 11 Apr 2023 20:16:13 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 1919734..36302ee 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,11 @@ To use `glob`, add this to your `Cargo.toml`: glob = "0.3.1" ``` +If you're using Rust 1.30 or earlier, or edition 2015, add this to your crate root: +```rust +extern crate glob; +``` + ## Examples Print all jpg files in /media/ and all of its subdirectories.