Skip to content

Commit 20e8fb4

Browse files
authored
VER: Release 0.21.0
2 parents 1f40e11 + 3f45520 commit 20e8fb4

39 files changed

+1264
-858
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222

2323
- name: Set up Rust
24-
uses: actions-rs/toolchain@v1
25-
with:
26-
profile: minimal
27-
toolchain: stable
28-
components: rustfmt, clippy
24+
run: rustup toolchain add --profile minimal stable --component clippy,rustfmt
2925

3026
# Cargo setup
3127
- name: Set up Cargo cache
@@ -76,11 +72,7 @@ jobs:
7672
uses: actions/checkout@v4
7773

7874
- name: Set up Rust
79-
uses: actions-rs/toolchain@v1
80-
with:
81-
profile: minimal
82-
toolchain: stable
83-
components: rustfmt, clippy
75+
run: rustup toolchain add --profile minimal stable --component clippy,rustfmt
8476

8577
# Cargo setup
8678
- name: Set up Cargo cache
@@ -127,11 +119,7 @@ jobs:
127119
uses: actions/checkout@v4
128120

129121
- name: Set up Rust
130-
uses: actions-rs/toolchain@v1
131-
with:
132-
profile: minimal
133-
toolchain: stable
134-
components: rustfmt, clippy
122+
run: rustup toolchain add --profile minimal stable --component clippy,rustfmt
135123

136124
# Cargo setup
137125
- name: Set up Cargo cache

.github/workflows/release.yaml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ jobs:
5454
uses: actions/checkout@v4
5555

5656
- name: Set up Rust
57-
uses: actions-rs/toolchain@v1
58-
with:
59-
profile: minimal
60-
toolchain: stable
61-
components: rustfmt, clippy
6257

6358
# Cargo setup
6459
- name: Set up Cargo cache
@@ -105,11 +100,7 @@ jobs:
105100
uses: actions/checkout@v4
106101

107102
- name: Set up Rust
108-
uses: actions-rs/toolchain@v1
109-
with:
110-
profile: minimal
111-
toolchain: stable
112-
components: rustfmt, clippy
103+
run: rustup toolchain add --profile minimal stable --component clippy,rustfmt
113104

114105
# Cargo setup
115106
- name: Set up Cargo cache
@@ -153,11 +144,7 @@ jobs:
153144
uses: actions/checkout@v4
154145

155146
- name: Set up Rust
156-
uses: actions-rs/toolchain@v1
157-
with:
158-
profile: minimal
159-
toolchain: stable
160-
components: rustfmt, clippy
147+
run: rustup toolchain add --profile minimal stable --component clippy,rustfmt
161148

162149
# Cargo setup
163150
- name: Set up Cargo cache
@@ -201,11 +188,7 @@ jobs:
201188
uses: actions/checkout@v4
202189

203190
- name: Set up Rust
204-
uses: actions-rs/toolchain@v1
205-
with:
206-
profile: minimal
207-
toolchain: stable
208-
components: rustfmt, clippy
191+
run: rustup toolchain add --profile minimal stable --component clippy,rustfmt
209192

210193
# Cargo setup
211194
- name: Set up Cargo cache
@@ -285,11 +268,7 @@ jobs:
285268
uses: actions/checkout@v4
286269

287270
- name: Set up Rust
288-
uses: actions-rs/toolchain@v1
289-
with:
290-
profile: minimal
291-
toolchain: stable
292-
components: rustfmt, clippy
271+
run: rustup toolchain add --profile minimal stable --component clippy,rustfmt
293272

294273
# Cargo setup
295274
- name: Set up Cargo cache

CHANGELOG.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Changelog
22

3+
## 0.21.0 - 2024-09-24
4+
5+
### Enhancements
6+
- Added `--omit-header` option to `dbn` CLI to skip encoding the header row when
7+
encoding CSVs
8+
- Added Python setter for `ts_event` on all records
9+
- Upgraded `pyo3` version to 0.22.3
10+
- Added new consolidated publishers for `XNAS.BASIC` and `DBEQ.MAX`
11+
12+
### Breaking changes
13+
- Changed handling of `write_header` parameter for `CsvEncoder` and `DynEncoder`. It
14+
now determines whether a header is written automatically in general, not only during
15+
instantiation of the encoder. This makes it possible to use `encode_records` and
16+
`encode_decoded` without writing a header
17+
- `CsvEncoder::new` creates an encoder that will always try to write a header. Use the builder with
18+
`write_header(false)` to create an encoder that won't write a header row
19+
- `schema` is now always optional for the `CsvEncoder` builder and no longer returns a `Result`
20+
- Changed the layout of `CbboMsg` to better match `BboMsg`
21+
- Renamed `Schema::Cbbo` to `Schema::Cmbp1`
22+
23+
### Bug fixes
24+
- Removed `debug_assert!` on `rtype` in `RecordRef::get_unchecked` that was too strict.
25+
The method is already marked unsafe and it's okay to interpret one record type as another type
26+
as long as latter type's size is not greater than the former's
27+
328
## 0.20.1 - 2024-08-26
429

530
### Enhancements
@@ -110,8 +135,6 @@
110135
`u8::MAX` to match C++ client and to reflect an unknown value. This also changes the
111136
value of these fields when upgrading a `SymbolMappingMsgV1` to DBNv2
112137
- Renamed `CbboMsg` to `CBBOMsg` in Python for consistency with other schemas
113-
114-
### Breaking changes
115138
- Changed text serialization of `display_factor` to be affected by `pretty_px`.
116139
While it's not a price, it uses the same fixed-price decimal format as other prices
117140
- Changed text serialization of `unit_of_measure_qty` in `InstrumentDefMsgV1` to be

0 commit comments

Comments
 (0)