From 6c0b8fa2a041ddf32e7acfdb5d5877187863ea29 Mon Sep 17 00:00:00 2001 From: nwin Date: Mon, 8 Jun 2015 08:42:12 +0200 Subject: [PATCH] Prepare for publishing --- Cargo.toml | 11 ++++++++--- inflate/Cargo.toml | 2 -- inflate/src/lib.rs | 2 +- src/decoder/stream.rs | 6 +++++- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e727cf25..4f4d4bec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,8 +15,9 @@ libc = "*" num = "*" bitflags = "*" -[dependencies.inflate] -path = "./inflate" +# Development only +#[dependencies.inflate] +#path = "inflate" [dev-dependencies] getopts = "*" @@ -26,4 +27,8 @@ glob = "*" [dev-dependencies.glium] version = "*" features = ["glutin"] -default-features = false \ No newline at end of file +default-features = false + +[features] +default = [] +unstable = [] \ No newline at end of file diff --git a/inflate/Cargo.toml b/inflate/Cargo.toml index bd61ab4b..78759e0e 100644 --- a/inflate/Cargo.toml +++ b/inflate/Cargo.toml @@ -1,9 +1,7 @@ [package] name = "inflate" version = "0.1.0" -authors = ["nwin "] [features] default = [] - unstable = [] \ No newline at end of file diff --git a/inflate/src/lib.rs b/inflate/src/lib.rs index 50bca848..b5f39960 100644 --- a/inflate/src/lib.rs +++ b/inflate/src/lib.rs @@ -6,7 +6,7 @@ // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. -#![cfg_attr(feature = "fast_unsafe", feature(core))] +#![cfg_attr(feature = "unstable", feature(core))] use std::cmp; use std::slice; diff --git a/src/decoder/stream.rs b/src/decoder/stream.rs index e521da1e..c23c4d43 100644 --- a/src/decoder/stream.rs +++ b/src/decoder/stream.rs @@ -7,7 +7,11 @@ use std::io::{self, Read, Write}; use std::cmp::min; use std::convert::{From, AsRef}; -extern crate inflate; +// # Development only: +// extern crate inflate; +// # For publishing +#[path = "../../inflate/src/lib.rs"] +mod inflate; use self::inflate::InflateStream; use crc::Crc32;