feat: patch chrono
This commit is contained in:
14
javascript-engine/external/chrono/ci/core-test/Cargo.toml
vendored
Normal file
14
javascript-engine/external/chrono/ci/core-test/Cargo.toml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
[package]
|
||||
name = "core-test"
|
||||
version = "0.1.0"
|
||||
authors = [
|
||||
"Kang Seonghoon <public+rust@mearie.org>",
|
||||
"Brandon W Maister <quodlibetor@gmail.com>",
|
||||
]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
chrono = { path = "../..", default-features = false, features = ["serde"] }
|
||||
|
||||
[features]
|
||||
alloc = ["chrono/alloc"]
|
||||
7
javascript-engine/external/chrono/ci/core-test/src/lib.rs
vendored
Normal file
7
javascript-engine/external/chrono/ci/core-test/src/lib.rs
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
#![no_std]
|
||||
|
||||
use chrono::{TimeZone, Utc};
|
||||
|
||||
pub fn create_time() {
|
||||
let _ = Utc.with_ymd_and_hms(2019, 1, 1, 0, 0, 0).unwrap();
|
||||
}
|
||||
Reference in New Issue
Block a user