Commit Graph

37 Commits

Author SHA1 Message Date
Qinxuan Chen 0ddf13c260 Fix impl-rlp for uint in primitive-types (#117)
* Fix impl-rlp for uint in primitive-types

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Fix impl_uint_rlp

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Fix impl_uint_rlp

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
2019-03-27 16:00:33 +03:00
cheme a05c677e71
fix(serde deser): remove needless `len` check
Co-Authored-By: niklasad1 <niklasadolfsson1@gmail.com>
2019-02-07 21:44:48 +01:00
Niklas Adolfsson 7a6ade2937
fix(deser): fix indexing into `str` bug
[str](https://doc.rust-lang.org/std/primitive.str.html) consist of unicode characters which can be between 1-4 bytes
long and indexing assuming that all are 1 byte may panic
2019-02-07 17:32:07 +01:00
Wei Tang 12f7a965c8 Add issue number 2019-01-25 20:12:14 +01:00
Wei Tang 1b7bd657ae Merge branch 'master' of https://github.com/paritytech/parity-common into sp-more-convert 2019-01-25 18:07:49 +01:00
thiolliere de3329a160
update impl-codec and update primitive-types (#101)
It is a minor update of primitive-types because it was meants to be in.
Then I publish primitive-types:2.1 and yank 2.0
2019-01-25 12:13:05 +01:00
thiolliere 43d9c8105d primitive types new release 2019-01-24 16:33:06 +01:00
Wei Tang e4654dc9b9 Use TryFrom trait 2019-01-24 16:30:52 +01:00
thiolliere 989867a1b4
update parity-codec for primitive types (#98) 2019-01-24 16:01:28 +01:00
Wei Tang 53f3ec9af4 Add more conversion functions for U128 2019-01-16 16:13:29 +01:00
Wei Tang 756c608905 Bump primitive-types and uint version 2019-01-15 17:43:35 +01:00
Tomasz Drwięga 9eba22f43d
More compact. 2019-01-11 14:31:55 +01:00
Tomasz Drwięga e114cfb391
Expose U128, add u128 conversions. 2019-01-11 14:21:11 +01:00
Wei Tang d632b4c1c8 Bump primitive-types patch version 2018-12-21 22:30:26 +08:00
Wei Tang 42f557d342 Remove crunchy and update uint version 2018-12-21 22:26:41 +08:00
Wei Tang 88efc9b060 Use new construct int style 2018-12-21 22:24:59 +08:00
Wei Tang dfc65a174f Use impl_fixed_hash_conversions 2018-12-05 12:43:58 +08:00
Wei Tang 559e5a2923 Copyright year 2015-2018 2018-12-04 11:57:56 +08:00
Wei Tang 5adf9f1651 Remove `From<u64>` from primitive types 2018-12-04 11:55:58 +08:00
Wei Tang 8d6d787009 Fix unnecessary std dep 2018-12-04 11:54:35 +08:00
Wei Tang 8a06e41697 Fix style nit 2018-12-04 11:43:38 +08:00
Wei Tang cfc2a5d10b Force std feature in serde and rlp 2018-12-04 11:42:43 +08:00
Wei Tang 9f2269132b Expand primitive types docs 2018-12-04 11:41:58 +08:00
Wei Tang 5bbb03f17b typo: 2.0.1 -> 2 2018-12-04 11:38:06 +08:00
Wei Tang 7714a2a58c Move impls to primitive-types subfolder 2018-12-04 11:36:27 +08:00
Wei Tang c264679463 Update license 2018-12-04 11:33:11 +08:00
Wei Tang 59d9672df7 Add all feature gates from fixed-hash and uint 2018-12-03 11:02:24 +08:00
Wei Tang 79898165c4 Disable std on impl-serde/codec/rlp crate 2018-12-03 00:20:05 +08:00
Wei Tang 7803bc45ae Fix nostd compile for primitive-types 2018-12-03 00:09:30 +08:00
Wei Tang 765aeb3c4e Release primitive-types 0.1.1 so things are not blocked here 2018-12-02 23:21:25 +08:00
Wei Tang d93f59bcf8 Add U512 in primitive-types 2018-12-02 23:21:02 +08:00
Wei Tang e61e1c255d Fix license of primitive-types 2018-12-02 22:03:05 +08:00
Wei Tang 2eb6b4e534 Revert uint convenience improvements so that dep PR works 2018-12-02 21:58:46 +08:00
Wei Tang 84f56d8ec9 Move basic derive to macro 2018-12-02 17:31:34 +08:00
Wei Tang 84b1856ffd Add license header to everything 2018-12-02 17:25:46 +08:00
Wei Tang b2423235e1 Improve uint defs and finish fixed hash impls 2018-12-02 17:24:26 +08:00
Wei Tang 97c034d78f Implement all uint features 2018-12-02 16:36:20 +08:00