Skip to content

Commit

Permalink
no_std compat lib(sorta)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-bhatt committed Nov 7, 2020
1 parent b0f892e commit dcb8919
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ exclude = [
name = "cloudevents"

[dependencies]
serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"
serde-value = "^0.6"
chrono = { version = "^0.4", default-features=false ,features = ["serde","alloc"] }
serde = { version = "^1.0", default-features=false,features = ["derive","alloc"] }
serde_json = { version = "^1.0", default-features = false, features = ["alloc"] }
serde-value = "^0.7"
chrono = { version = "^0.4", default-features=false ,features = ["serde","alloc","clock"] }
delegate-attr = "^0.2"
base64 = "^0.12"
base64 = { version = "^0.12", default-features = false, features = ["alloc"] }
url = { version = "^2.1", features = ["serde"] }
core-error = "0.0.1-rc4"

Expand All @@ -41,7 +41,7 @@ hostname = "^0.3"
uuid = { version = "^0.8", features = ["v4"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "^0.3", features = ["Window", "Location"] }
web-sys = { version = "^0.3", default-features = false,features = ["Window", "Location"] }
uuid = { version = "^0.8", features = ["v4", "wasm-bindgen"] }

[dev-dependencies]
Expand Down
1 change: 0 additions & 1 deletion src/event/displayerr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use core::fmt::{self, Debug, Display};
use snafu::Snafu;

#[derive(Clone)]
pub struct DisplayError<T>(pub T);
Expand Down
1 change: 0 additions & 1 deletion src/event/spec_version.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::{v03, v10};
use serde::export::Formatter;
use snafu::Snafu;
use std::convert::TryFrom;
use std::fmt;
use std::prelude::v1::*;
Expand Down
1 change: 0 additions & 1 deletion src/event/types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use chrono::{DateTime, Utc};
use snafu;
use std::prelude::v1::*;
use url::Url;

Expand Down
2 changes: 1 addition & 1 deletion src/message/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use core::fmt::{self, Debug, Display};
use snafu::Snafu;
use std::prelude::v1::*;

struct DisplayError<T>(pub T);
pub struct DisplayError<T>(pub T);

impl<T> Debug for DisplayError<T>
where
Expand Down

0 comments on commit dcb8919

Please sign in to comment.