Skip to content

Commit 18c6ff8

Browse files
committed
remove the useless no_std feature
1 parent 315ea19 commit 18c6ff8

File tree

5 files changed

+75
-111
lines changed

5 files changed

+75
-111
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ os:
1212

1313
env:
1414
-
15-
- NO_DEFAULT_FEATURES=1 FEATURES="no_std"
1615
- RELEASE=1
17-
- RELEASE=1 NO_DEFAULT_FEATURES=1 FEATURES="no_std"
1816

1917
script:
2018
- if [ "$NO_DEFAULT_FEATURES" = "1" ]; then NO_DEFAULT_FEATURES="--no-default-features"; else NO_DEFAULT_FEATURES=""; fi

Cargo.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "lazy-static-include"
3-
version = "2.1.1"
3+
version = "2.2.0"
44
authors = ["Magic Len <len@magiclen.org>"]
55
repository = "https://github.com/magiclen/lazy-static-include"
66
homepage = "https://magiclen.org/lazy-static-include"
77
keywords = ["lazy", "macro", "static", "include"]
8-
categories = ["no-std", "memory-management", "rust-patterns"]
8+
categories = ["memory-management", "rust-patterns"]
99
description= "This crate provides `lazy_static_include_bytes` and `lazy_static_include_str` macros to replace `include_bytes` and `include_str` macros."
1010
readme = "README.md"
1111
license = "MIT"
@@ -16,17 +16,13 @@ branch = "master"
1616

1717
[dependencies]
1818
lazy_static = "1.3"
19-
syn = {version = "0.15.31", features = ["parsing", "full", "extra-traits"], optional = true}
20-
starts-ends-with-caseless = {version = "0.2.1", optional = true}
19+
syn = {version = "0.15", features = ["parsing", "full", "extra-traits"]}
20+
starts-ends-with-caseless = "0.2.0"
2121

2222
[dev-dependencies]
2323
bencher = "0.1.5"
2424
serde_json = "1.0"
2525

26-
[features]
27-
default = ["starts-ends-with-caseless", "syn"]
28-
no_std = []
29-
3026
[[bench]]
3127
name = "bench"
3228
harness = false

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,6 @@ assert_eq!("Hello", TEST[1]);
113113
assert_eq!("哈囉", TEST[2]);
114114
```
115115

116-
## No Std
117-
118-
This crate can work without std, but the `lazy_static_include_array` macro will be disabled unless using the **release** profile.
119-
120-
Enable the feature **no_std** to compile this crate without std.
121-
122-
```toml
123-
[dependencies.lazy-static-include]
124-
version = "*"
125-
features = ["no_std"]
126-
default-features = false
127-
```
128-
129116
## Benchmark
130117

131118
Using static mechanisms makes your program faster. See my benchmark result below (Intel i7-6700HQ, ran on 2019/07/16):

src/lib.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,6 @@ assert_eq!("Hello", TEST[1]);
111111
assert_eq!("哈囉", TEST[2]);
112112
```
113113
114-
## No Std
115-
116-
This crate can work without std, but the `lazy_static_include_array` macro will be disabled unless using the **release** profile.
117-
118-
Enable the feature **no_std** to compile this crate without std.
119-
120-
```toml
121-
[dependencies.lazy-static-include]
122-
version = "*"
123-
features = ["no_std"]
124-
default-features = false
125-
```
126-
127114
## Benchmark
128115
129116
Using static mechanisms makes your program faster. See my benchmark result below (Intel i7-6700HQ, ran on 2019/07/16):
@@ -149,13 +136,9 @@ cargo bench
149136
```
150137
*/
151138

152-
#![cfg_attr(feature = "no_std", no_std)]
153-
154-
#[cfg(all(debug_assertions, not(feature = "no_std")))]
155139
#[doc(hidden)]
156140
pub extern crate syn;
157141

158-
#[cfg(all(debug_assertions, not(feature = "no_std")))]
159142
#[doc(hidden)]
160143
pub extern crate starts_ends_with_caseless;
161144

0 commit comments

Comments
 (0)