diff options
author | Nadrieril | 2020-04-05 19:56:00 +0100 |
---|---|---|
committer | GitHub | 2020-04-05 19:56:00 +0100 |
commit | 4290615769fc26c5e4b70843e7fbfddf6359af41 (patch) | |
tree | d7b7a860f08831aa81faee961c0d675440daea32 /serde_dhall | |
parent | 7e977f282fb6a0eff0ef45738b9b5c98dc4c6fee (diff) | |
parent | 5a10cd2e8fac854f4f6fa152cfb1b9ad71b0d091 (diff) |
Merge pull request #157 from Nadrieril/release
Release v0.5.0
Diffstat (limited to '')
-rw-r--r-- | serde_dhall/Cargo.toml | 7 | ||||
-rw-r--r-- | serde_dhall/release.toml | 35 | ||||
-rw-r--r-- | serde_dhall/src/lib.rs | 2 | ||||
-rw-r--r-- | serde_dhall/src/options.rs | 4 |
4 files changed, 44 insertions, 4 deletions
diff --git a/serde_dhall/Cargo.toml b/serde_dhall/Cargo.toml index 6af883a..d6e8d9f 100644 --- a/serde_dhall/Cargo.toml +++ b/serde_dhall/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "serde_dhall" -version = "0.4.0" # remember to update html_root_url, README and changelog +# remember to update html_root_url, README and changelog +version = "0.5.0" authors = ["Nadrieril <nadrieril@users.noreply.github.com>"] license = "BSD-2-Clause" description = "Dhall support for serde" @@ -11,8 +12,8 @@ edition = "2018" [dependencies] serde = { version = "1.0", features = ["derive"] } -dhall = { version = "=0.4.0", path = "../dhall" } -dhall_proc_macros = { version = "=0.4.0", path = "../dhall_proc_macros" } +dhall = { version = "= 0.5.0", path = "../dhall" } +dhall_proc_macros = { version = "= 0.5.0", path = "../dhall_proc_macros" } doc-comment = "0.3" reqwest = { version = "0.10", features = ["blocking"] } url = "2.1" diff --git a/serde_dhall/release.toml b/serde_dhall/release.toml new file mode 100644 index 0000000..d15cf88 --- /dev/null +++ b/serde_dhall/release.toml @@ -0,0 +1,35 @@ +[[pre-release-replacements]] +file = "src/lib.rs" +search = "\\[doc\\(html_root_url = .*\\)\\]" +replace = "[doc(html_root_url = \"https://docs.rs/{{crate_name}}/{{version}}\")]" +exactly = 1 + +[[pre-release-replacements]] +file = "../README.md" +search = "serde_dhall = \".*\"" +replace = "{{crate_name}} = \"{{version}}\"" +exactly = 1 + +[[pre-release-replacements]] +file = "../README.md" +search = "#### \\[Unreleased\\]" +replace = "#### [Unreleased]\n\n#### [{{version}}] - {{date}}" +exactly = 1 + +[[pre-release-replacements]] +file = "../README.md" +search = "\\[Unreleased\\]:" +replace = "[{{version}}]:" +exactly = 1 + +[[pre-release-replacements]] +file = "../README.md" +search = "\\.\\.\\.HEAD" +replace = "...{{tag_name}}" +exactly = 1 + +[[pre-release-replacements]] +file = "../README.md" +search = "<!-- next-url -->" +replace = "<!-- next-url -->\n[Unreleased]: https://github.com/Nadrieril/dhall-rust/compare/{{tag_name}}...HEAD" +exactly = 1 diff --git a/serde_dhall/src/lib.rs b/serde_dhall/src/lib.rs index c478b2a..bff8989 100644 --- a/serde_dhall/src/lib.rs +++ b/serde_dhall/src/lib.rs @@ -1,4 +1,4 @@ -#![doc(html_root_url = "https://docs.rs/serde_dhall/0.4.0")] +#![doc(html_root_url = "https://docs.rs/serde_dhall/0.5.0")] #![warn(missing_docs, missing_doc_code_examples)] //! [Dhall][dhall] is a programmable configuration language that provides a non-repetitive //! alternative to JSON and YAML. diff --git a/serde_dhall/src/options.rs b/serde_dhall/src/options.rs index 06a4368..76b1c5b 100644 --- a/serde_dhall/src/options.rs +++ b/serde_dhall/src/options.rs @@ -302,6 +302,8 @@ impl<'a, A> Deserializer<'a, A> { /// This returns a [`Deserializer`] object. Call the [`parse`] method to get the deserialized /// value, or use other [`Deserializer`] methods to control the deserialization process. /// +/// Imports will be resolved relative to the current directory. +/// /// # Example /// /// ```rust @@ -338,6 +340,8 @@ pub fn from_str(s: &str) -> Deserializer<'_, NoAnnot> { /// This returns a [`Deserializer`] object. Call the [`parse`] method to get the deserialized /// value, or use other [`Deserializer`] methods to control the deserialization process. /// +/// Imports will be resolved relative to the provided file's path. +/// /// # Example /// /// ```no_run |