Update no_std test to 2018 edition

This commit is contained in:
David Tolnay 2018-12-31 21:42:22 -05:00
parent 05ab569a80
commit c5ccb995ad
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 3 additions and 6 deletions

View File

@ -1,11 +1,11 @@
[package]
name = "serde_derive_tests_no_std"
version = "0.0.0"
edition = "2018"
publish = false
[dependencies]
libc = { version = "0.2", default-features = false }
serde = { path = "../../serde", default-features = false }
serde_derive = { path = "../../serde_derive" }
serde = { path = "../../serde", default-features = false, features = ["derive"] }
[workspace]

View File

@ -1,8 +1,6 @@
#![feature(lang_items, start)]
#![no_std]
extern crate libc;
#[start]
fn start(_argc: isize, _argv: *const *const u8) -> isize {
0
@ -21,8 +19,7 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {
//////////////////////////////////////////////////////////////////////////////
#[macro_use]
extern crate serde_derive;
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize)]
struct Unit;