Skip to content

Commit fa421ef

Browse files
authored
Merge pull request #132 from KodrAus/feat/remove-heap-impl
Remove the heap impl now that inline is always available
2 parents 53aa953 + 9bec800 commit fa421ef

File tree

6 files changed

+2
-105
lines changed

6 files changed

+2
-105
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ matrix:
1212
script:
1313
- cargo test
1414
- cargo bench
15-
- cargo test --features nightly
16-
- cargo bench --features nightly
17-
- CARGO_CFG_LAZY_STATIC_HEAP_IMPL=1 cargo test
18-
- CARGO_CFG_LAZY_STATIC_HEAP_IMPL=1 cargo bench
1915
- cargo test --features spin_no_std
2016
- cargo bench --features spin_no_std
2117
- cd compiletest

Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,12 @@ keywords = ["macro", "lazy", "static"]
1414
categories = [ "no-std", "rust-patterns", "memory-management" ]
1515
exclude = ["/.travis.yml", "/appveyor.yml"]
1616

17-
build = "build.rs"
18-
1917
[dependencies.spin]
2018
version = "0.4.10"
2119
optional = true
2220
default-features = false
2321
features = ["once"]
2422

25-
[build-dependencies]
26-
version_check = "0.1.4"
27-
2823
[features]
2924
nightly = []
3025
spin_no_std = ["spin"]

build.rs

Lines changed: 0 additions & 44 deletions
This file was deleted.

compiletest/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ under a different crate name so that can be imported in the compile tests.
66
This currently appears to use the right local build of `lazy_static`.
77
*/
88

9-
#![feature(use_extern_macros)]
10-
119
extern crate lazy_static;
1210

1311
pub use self::lazy_static::*;

src/heap_lazy.rs

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,12 @@ no guarantees can be made about them in regard to SemVer stability.
103103
#![doc(html_root_url = "https://docs.rs/lazy_static/1.1.0")]
104104
#![no_std]
105105

106-
#[cfg(lazy_static_heap_impl)]
107-
#[path="heap_lazy.rs"]
108-
#[doc(hidden)]
109-
pub mod lazy;
110-
111-
#[cfg(lazy_static_inline_impl)]
106+
#[cfg(not(feature = "spin_no_std"))]
112107
#[path="inline_lazy.rs"]
113108
#[doc(hidden)]
114109
pub mod lazy;
115110

116-
#[cfg(lazy_static_spin_impl)]
111+
#[cfg(feature = "spin_no_std")]
117112
#[path="core_lazy.rs"]
118113
#[doc(hidden)]
119114
pub mod lazy;

0 commit comments

Comments
 (0)