Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Commit ae449d5

Browse files
committed
drop support of older nightlies
Minor version has been bumped to v0.4.0 so we can stop supporting them This also drop the chrono dependency, which some people have been running into problems with. closes #60
1 parent 603f629 commit ae449d5

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,3 @@ r0 = "0.2.1"
1616
[features]
1717
# provides a panic_fmt implementation that calls the abort instruction (`udf 0xfe`)
1818
abort-on-panic = []
19-
20-
[build-dependencies]
21-
rustc_version = "0.2.1"
22-
chrono = "0.4.0"

build.rs

-13
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
1-
extern crate chrono;
2-
extern crate rustc_version;
3-
41
use std::env;
52
use std::fs::File;
63
use std::io::Write;
74
use std::path::PathBuf;
85

9-
use chrono::NaiveDate;
10-
116
fn main() {
12-
let meta = rustc_version::version_meta().unwrap();
13-
if meta.channel == rustc_version::Channel::Dev
14-
|| meta.commit_date.unwrap().parse::<NaiveDate>().unwrap()
15-
> NaiveDate::from_ymd(2017, 12, 26)
16-
{
17-
println!("cargo:rustc-cfg=has_termination_lang")
18-
}
19-
207
let target = env::var("TARGET").unwrap();
218

229
has_fpu(&target);

src/lang_items.rs

-11
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ unsafe extern "C" fn panic_fmt(_: ::core::fmt::Arguments, _: &'static str, _: u3
2424
// The final piece is that the entry point of our program, the reset handler,
2525
// has to call `rustc_main`. That's covered by the `reset_handler` function in
2626
// root of this crate.
27-
#[cfg(has_termination_lang)]
2827
#[lang = "start"]
2928
extern "C" fn start<T>(main: fn() -> T, _argc: isize, _argv: *const *const u8) -> isize
3029
where
@@ -35,21 +34,11 @@ where
3534
0
3635
}
3736

38-
#[cfg(not(has_termination_lang))]
39-
#[lang = "start"]
40-
extern "C" fn start(main: fn(), _argc: isize, _argv: *const *const u8) -> isize {
41-
main();
42-
43-
0
44-
}
45-
4637
#[lang = "termination"]
47-
#[cfg(has_termination_lang)]
4838
pub trait Termination {
4939
fn report(self) -> i32;
5040
}
5141

52-
#[cfg(has_termination_lang)]
5342
impl Termination for () {
5443
fn report(self) -> i32 {
5544
0

0 commit comments

Comments
 (0)