From 0ef334e2a11acdb43250e4d297813a4cbb894017 Mon Sep 17 00:00:00 2001 From: Matt Green Date: Thu, 10 Nov 2016 19:43:13 -0500 Subject: [PATCH] Size optimizations --- Cargo.toml | 5 +++++ src/main.rs | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 7586797..54dce5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,8 +10,13 @@ readme = "README.md" keywords = ["watcher", "inotify", "fsevents", "kqueue"] license = "Apache-2.0" +[profile.dev] +panic = "abort" + [profile.release] lto = true +opt-level = "s" +panic = "abort" [dependencies] glob = "0.2.11" diff --git a/src/main.rs b/src/main.rs index 4448238..6b5d0c8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,6 @@ #![feature(process_exec)] +#![feature(alloc_system)] +extern crate alloc_system; #[macro_use] extern crate clap;