From 8c14a3321f516d9e789671ce64584dafb656473f Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 21 Dec 2019 22:16:59 +0000 Subject: Prepare for publishing on crates.io --- dhall/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'dhall/src') diff --git a/dhall/src/lib.rs b/dhall/src/lib.rs index 12660b4..54111dd 100644 --- a/dhall/src/lib.rs +++ b/dhall/src/lib.rs @@ -1,3 +1,4 @@ +#![doc(html_root_url = "https://docs.rs/dhall/0.1.0")] #![feature(trace_macros)] #![feature(slice_patterns)] #![feature(never_type)] -- cgit v1.2.3 From be9510bc21724077fd27dcdb3825557475a6bb44 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 21 Dec 2019 23:00:52 +0000 Subject: Generate parser manually to make the crate publishable --- dhall/src/syntax/text/parser.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'dhall/src') diff --git a/dhall/src/syntax/text/parser.rs b/dhall/src/syntax/text/parser.rs index 90cb4b1..832472b 100644 --- a/dhall/src/syntax/text/parser.rs +++ b/dhall/src/syntax/text/parser.rs @@ -156,9 +156,15 @@ lazy_static::lazy_static! { }; } -#[derive(Parser)] -#[grammar = "dhall.pest"] -struct DhallParser; +// Generate pest parser manually becaue otherwise we'd need to modify something outside of OUT_DIR +// and that's forbidden by docs.rs. +// This is equivalent to: +// ``` +// #[derive(Parser) +// #[grammar = "..."] +// struct DhallParser; +// ``` +include!(concat!(env!("OUT_DIR"), "/dhall_parser.rs")); #[pest_consume::parser(parser = DhallParser, rule = Rule)] impl DhallParser { -- cgit v1.2.3 From 6e6094731a3b6a8ff2adc23f8ecae43b25d02731 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 21 Dec 2019 23:01:41 +0000 Subject: Bump dhall version --- dhall/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhall/src') diff --git a/dhall/src/lib.rs b/dhall/src/lib.rs index 54111dd..dfa06e7 100644 --- a/dhall/src/lib.rs +++ b/dhall/src/lib.rs @@ -1,4 +1,4 @@ -#![doc(html_root_url = "https://docs.rs/dhall/0.1.0")] +#![doc(html_root_url = "https://docs.rs/dhall/0.1.1")] #![feature(trace_macros)] #![feature(slice_patterns)] #![feature(never_type)] -- cgit v1.2.3