Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Move fixed-hash and uint to parity-common; remove tests crate #47

Merged
merged 11 commits into from
Aug 6, 2018

Conversation

dvdplm
Copy link
Contributor

@dvdplm dvdplm commented Jul 13, 2018

Moving fixed-hash and uint crates to parity-common: PR and chops up the tests subcrate and moving the parts to the relevant crates: optimised multiplication, serialization and conversion tests to ethereum-types and core instantiation and basic arithmetic to uint/fixed-hash.

NOTE Can be reviewed but need a final tweak after parity-common#12 is merged before this can be merged to fixup the import path in Cargo.toml.

@debris
Copy link
Contributor

debris commented Jul 13, 2018

I am not sure about that. What's wrong in parity-common using this library as a dependency?

@dvdplm dvdplm self-assigned this Jul 13, 2018
@dvdplm dvdplm changed the title Remove fixed-hash Move fixed-hash and uint to parity-common; remove tests crate Jul 13, 2018
@dvdplm
Copy link
Contributor Author

dvdplm commented Jul 30, 2018

Ping @tomusdrw @niklasad1 ptal?

@debris wrt to your concerns, see discussion in paritytech/parity-common#12

@@ -11,7 +11,8 @@ repository = "https://github.com/paritytech/primitives"
[dependencies]
tiny-keccak = "1.4"
crunchy = { version = "0.1.6", features = ["limit_256"] }
fixed-hash = { version = "0.2.1", path = "../fixed-hash", default-features = false }
# TODO: remove `branch` when https://github.com/paritytech/parity-common/pull/12 lands
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems it landed already

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think it would be best to actually use crates.io version instead of git repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems it landed already

Good catch, will fix.

I also think it would be best to actually use crates.io version instead of git repo.

I agree with this (strongly) but I wanted to wait until this stuff lands in polkadot (this poorly named PR) and the dust settles a little bit.

…tives into chore/remove-fixed-hash

* 'chore/remove-fixed-hash' of github.com:paritytech/primitives:
  Add `rust-toolchain` file
  update dependencies to the `primitives repo`
  Add a new crate for testing `no-std`
  Add a new crate for testing `no-std`
  make it work on no-std by disabling default ft
  fix error on nightly
@dvdplm dvdplm merged commit cb6e423 into master Aug 6, 2018
@debris debris deleted the chore/remove-fixed-hash branch August 6, 2018 08:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants