Debian Codegraph @

debian/missing-sources/typenum/CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 This project follows semantic versioning.
4
5 The MSRV (Minimum Supported Rust Version) is 1.37.0, and typenum is tested
6 against this Rust version.
7
8 ### Unreleased
9
10 ### 1.19.0 (2025-10-01)
11 - [fixed] Conflicting trait implementations with the `const-generics` feature
12 on 16-bit targets
13 - [fixed] Remove deprecated feature flag
14 - [added] Support `core::fmt::Binary`
15 - [added] Constants for 2^N - 1
16 - [added] Implemented `ToInt` for `isize`, `i128`, and `u128`
17
18 ### 1.18.0 (2025-02-17)
19 - [changed] Remove build scripts; instead check-in the built code (PR #219)
20 - [added] Constants for 3600 (PR #220)
21 - [added] Elixir-style syntax for `tarr!` macro (PR #214)
22 - [added] `FoldAdd` and `FoldMul` to get the sum/product of an array (PR #209)
23
24 ### 1.17.0 (2023-09-15)
25 - [removed] Remove `force_unix_path_separator` feature, make it the default
26 - [added] docs.rs metadata and cfg options
27 - [added] Playground metadata
28
29 ### 1.16.0 (2022-12-05)
30 - [added] `const INT` field to the `ToInt` trait.
31 - [added] `const-generics` field with `U<N>` mapping where `N` is a const generic.
32
33 ### 1.15.0 (2021-12-25)
34 - [fixed] Cross-compilation issue due to doing math in build script. (PR #177)
35 - [added] New feature `scale_info` for using inside
36 [Substrate](https://github.com/paritytech/substrate.git)-based runtimes (PR
37 #175)
38
39 ### 1.14.0 (2021-09-01)
40 - [changed] Sealed all marker traits. Documentation already stated that these
41 should not be implemented outside the crate, so this is not considered a
42 breaking change.
43
44 ### 1.13.0 (2021-03-12)
45 - [changed] MSRV from 1.22.0 to 1.37.0.
46 - [fixed] `op` macro with 2018 edition import.
47 - [changed] Allowed calling `assert_type_eq` and `assert_type` at top level.
48 - [added] Marker trait `Zero` for `Z0`, `U0`, and `B0`.
49 - [added] Implementation of `Pow` trait for f32 and f64 with negative exponent.
50 - [added] Trait `ToInt`.
51
52 ### 1.12.0 (2020-04-13)
53 - [added] Feature `force_unix_path_separator` to support building without Cargo.
54 - [added] Greatest common divisor operator `Gcd` with alias `Gcf`.
55 - [added] `gcd` to the `op!` macro.
56 - [changed] Added `Copy` bound to `Rhs` of `Mul<Rhs>` impl for `<TArr<V, A>`.
57 - [changed] Added `Copy` bound to `Rhs` of `Div<Rhs>` impl for `<TArr<V, A>`.
58 - [changed] Added `Copy` bound to `Rhs` of `PartialDiv<Rhs>` impl for `<TArr<V, A>`.
59 - [changed] Added `Copy` bound to `Rhs` of `Rem<Rhs>` impl for `<TArr<V, A>`.
60 - [fixed] Make all functions #[inline].
61
62 ### 1.11.2 (2019-08-26)
63 - [fixed] Cross compilation from Linux to Windows.
64
65 ### 1.11.1 (2019-08-25)
66 - [fixed] Builds on earlier Rust builds again and added Rust 1.22.0 to Travis to
67 prevent future breakage.
68
69 ### 1.11.0 (2019-08-25)
70 - [added] Integer `log2` to the `op!` macro.
71 - [added] Integer binary logarithm operator `Logarithm2` with alias `Log2`.
72 - [changed] Removed `feature(i128_type)` when running with the `i128`
73 feature. Kept the feature flag. for typenum to maintain compatibility with
74 old Rust versions.
75 - [added] Integer `sqrt` to the `op!` macro.
76 - [added] Integer square root operator `SquareRoot` with alias `Sqrt`.
77 - [fixed] Bug with attempting to create U1024 type alias twice.
78
79 ### 1.10.0 (2018-03-11)
80 - [added] The `PowerOfTwo` marker trait.
81 - [added] Associated constants for `Bit`, `Unsigned`, and `Integer`.
82
83 ### 1.9.0 (2017-05-14)
84 - [added] The `Abs` type operator and corresponding `AbsVal` alias.
85 - [added] The feature `i128` that enables creating 128-bit integers from
86 typenums.
87 - [added] The `assert_type!` and `assert_type_eq!` macros.
88 - [added] Operators to the `op!` macro, including those performed by `cmp!`.
89 - [fixed] Bug in `op!` macro involving functions and convoluted expressions.
90 - [deprecated] The `cmp!` macro.
91
92 ### 1.8.0 (2017-04-12)
93 - [added] The `op!` macro for conveniently performing type-level operations.
94 - [added] The `cmp!` macro for conveniently performing type-level comparisons.
95 - [added] Some comparison type-operators that are used by the `cmp!` macro.
96
97 ### 1.7.0 (2017-03-24)
98 - [added] Type operators `Min` and `Max` with accompanying aliases `Minimum` and
99 `Maximum`
100
101 ### 1.6.0 (2017-02-24)
102 - [fixed] Bug in `Array` division.
103 - [fixed] Bug where `Rem` would sometimes exit early with the wrong answer.
104 - [added] `PartialDiv` operator that performs division as a partial function --
105 it's defined only when there is no remainder.
106
107 ### 1.5.2 (2017-02-04)
108 - [fixed] Bug between `Div` implementation and type system.
109
110 ### 1.5.1 (2016-11-08)
111 - [fixed] Expanded implementation of `Pow` for primitives.
112
113 ### 1.5.0 (2016-11-03)
114 - [added] Functions to the `Pow` and `Len` traits. This is *technically* a
115 breaking change, but it would only break someone's code if they have a custom
116 impl for `Pow`. I would be very surprised if that is anyone other than me.
117
118 ### 1.4.0 (2016-10-29)
119 - [added] Type-level arrays of type-level integers. (PR #66)
120 - [added] The types in this crate are now instantiable. (Issue #67, PR #68)
121
122 ### 1.3.1 (2016-03-31)
123 - [fixed] Bug with recent nightlies.
124
125 ### 1.3.0 (2016-02-07)
126 - [changed] Removed dependency on libstd. (Issue #53, PR #55)
127 - [changed] Reorganized module structure. (PR #57)
128
129 ### 1.2.0 (2016-01-03)
130 - [added] This change log!
131 - [added] Convenience type aliases for operators. (Issue #48, PR #50)
132 - [added] Types in this crate now derive all possible traits. (Issue #42, PR
133 #51)