fix: git deps use tag, not version

This commit is contained in:
Erica Marigold 2023-08-23 21:08:40 +05:30
parent b47f2afe06
commit c8d12a9e24
No known key found for this signature in database
GPG key ID: 23CD97ABBBCC5ED2
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ Put this in your Cargo.toml:
```toml
[dependencies]
chrono = "0.4.56"
chrono_locale = { git = "https://github.com/0x5eal/chrono-locale.git", version = "v0.1.2" }
chrono_locale = { git = "https://github.com/0x5eal/chrono-locale.git", tag = "v0.1.2" }
```
Then put this in your `lib.rs` or `main.rs`:

View file

@ -8,7 +8,7 @@
//! ```toml
//! [dependencies]
//! chrono = "0.4"
//! chrono_locale = { git = "https://github.com/0x5eal/chrono-locale.git", version = "v0.1.2" }
//! chrono_locale = { git = "https://github.com/0x5eal/chrono-locale.git", tag = "v0.1.2" }
//! ```
//!
//! Then put this in your `lib.rs` or `main.rs`: