-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: use workspace.{package,dependencies} #17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not do cfg(any(test, feature))
, so tests run only when the feature is enabled, instead of always.
@@ -504,6 +504,7 @@ impl<const BITS: usize, const LIMBS: usize> serde::Serialize for Signed<BITS, LI | |||
} | |||
} | |||
|
|||
#[cfg(feature = "serde")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was missing and failing individual compilation (with -p
), tho I'm not sure why this cannot be caught when compiling the workspace.
@@ -514,20 +515,18 @@ impl<'de, const BITS: usize, const LIMBS: usize> serde::Deserialize<'de> for Sig | |||
} | |||
} | |||
|
|||
#[cfg(test)] | |||
#[cfg(all(test, feature = "std"))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use of String
, ToString
.
#[auto_impl(&)] | ||
#[cfg_attr(feature = "alloc", auto_impl(Box, Arc))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop auto_impl
for manual impl :^)
} | ||
} | ||
|
||
impl Encodable for [u8] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All methods take &self
so this has to be implemented without the ref.
# TODO: Can we remove std from here? | ||
eip712-serde = ["std", "dep:serde"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
util::StringifiedNumeric
uses String
and ToString
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could remove std by importing String
and ToString
from alloc 🤔
@@ -142,7 +145,7 @@ impl<'de> serde::Deserialize<'de> for B512 { | |||
} | |||
} | |||
|
|||
// code optained from: https://docs.rs/impl-serde/0.4.0/impl_serde/ | |||
// code stolen from: https://docs.rs/impl-serde/0.4.0/impl_serde/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No changes needed. gonna go ahead and merge
Fixes #13
Use valid
package.categories
in manifests: https://crates.io/category_slugsPass on
std
feature to dependencies everywhereRemoves "profile.dev" optimizations, results in way faster compilation:
CC @prestwich