From ffacbf9aec3342519190755a913faa11438f3f28 Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Mon, 30 Jul 2018 21:47:42 +0530 Subject: Add profiles --- Cargo.toml | 7 +++++++ src/content.rs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2adeae2..f8a74e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,10 @@ regex = "1" urlencoding = "1.0.0" clap = "2.32.0" lazy_static = "1.0.2" + +[profile.dev] +opt-level = 1 + +[profile.release] +opt-level = 3 + diff --git a/src/content.rs b/src/content.rs index d767f9c..aa45207 100644 --- a/src/content.rs +++ b/src/content.rs @@ -24,7 +24,7 @@ pub fn query_url_gen(title: &str) -> String { url.push_str(&urlencoding::encode(title)); url.push_str("&"); url.push_str("redirects=1&"); - url.push_str("pllimit=40&"); + url.push_str("pllimit=100&"); url.push_str("explaintext=1"); url } -- cgit v1.2.3