Skip to content

Commit f0ad704

Browse files
committed
Bump version to 0.1.1
1 parent bc21678 commit f0ad704

File tree

7 files changed

+62
-10
lines changed

7 files changed

+62
-10
lines changed

README.md

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is for:
66

77
## Dev notes
88

9-
To build and test:
9+
## Build and test
1010

1111
```
1212
cargo clean
@@ -17,8 +17,60 @@ cd questdb-confstr-ffi/cpp_test
1717
./run
1818
```
1919

20+
## Linting
21+
2022
In addition, before pushing a PR, please run:
2123
```
2224
cargo fmt --all
2325
cargo clippy --all-targets -- -D warnings
24-
```
26+
```
27+
28+
## Cutting a release
29+
30+
Let us assume we want to cut version `0.1.1` and the current version is `0.1.0`.
31+
32+
1. New branch
33+
```shell
34+
git switch -c v0.1.1
35+
```
36+
37+
2. Update the version in both `Cargo.toml` files
38+
39+
```shell
40+
$EDITOR questdb-confstr/Cargo.toml
41+
$EDITOR questdb-confstr-ffi/Cargo.toml
42+
```
43+
44+
3. Re-run all tests and lints
45+
46+
Don't forget about _clippy_: The newest version of Rust might have picked up
47+
some new lints that we need to fix.
48+
49+
4. Commit the changes and create a PR
50+
```shell
51+
git add -u
52+
git commit -m "Bump version to 0.1.1"
53+
git push --set-upstream origin v0.1.1
54+
```
55+
56+
N.B: _We don't need to update any `Cargo.lock` files for the ffi crate since
57+
there are no dependencies._
58+
59+
5. Create a new PR, get it reviewed and merge it
60+
61+
https://github.com/questdb/questdb-confstr-rs/pull/new/
62+
63+
6. Publish both crates to crates.io
64+
65+
```shell
66+
cargo login
67+
68+
(cd questdb-confstr && cargo publish --dry-run)
69+
(cd questdb-confstr-ffi && cargo publish --dry-run)
70+
71+
(cd questdb-confstr && cargo publish)
72+
(cd questdb-confstr && cargo publish)
73+
```
74+
75+
(If in doubt, see the
76+
"[Publishing on crates.io](https://doc.rust-lang.org/cargo/reference/publishing.html)" guide)

questdb-confstr-ffi/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "questdb-confstr-ffi"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55
license = "Apache-2.0"
66
description = "C FFI bindings for questdb-confstr"
@@ -13,4 +13,4 @@ authors = ["Adam Cimarosti <[email protected]>"]
1313
questdb-confstr = { path = "../questdb-confstr", version = "0.1.0" }
1414

1515
[lib]
16-
crate-type = ["lib", "staticlib"]
16+
crate-type = ["lib", "staticlib"]

questdb-confstr-ffi/cpp_test/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* \__\_\\__,_|\___||___/\__|____/|____/
77
*
88
* Copyright (c) 2014-2019 Appsicle
9-
* Copyright (c) 2019-2024 QuestDB
9+
* Copyright (c) 2019-2025 QuestDB
1010
*
1111
* Licensed under the Apache License, Version 2.0 (the "License");
1212
* you may not use this file except in compliance with the License.

questdb-confstr-ffi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* \__\_\\__,_|\___||___/\__|____/|____/
77
*
88
* Copyright (c) 2014-2019 Appsicle
9-
* Copyright (c) 2019-2024 QuestDB
9+
* Copyright (c) 2019-2025 QuestDB
1010
*
1111
* Licensed under the Apache License, Version 2.0 (the "License");
1212
* you may not use this file except in compliance with the License.

questdb-confstr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "questdb-confstr"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55
license = "Apache-2.0"
66
description = "A parser for a configuration string format handling service names and parameters"

questdb-confstr/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* \__\_\\__,_|\___||___/\__|____/|____/
77
*
88
* Copyright (c) 2014-2019 Appsicle
9-
* Copyright (c) 2019-2024 QuestDB
9+
* Copyright (c) 2019-2025 QuestDB
1010
*
1111
* Licensed under the Apache License, Version 2.0 (the "License");
1212
* you may not use this file except in compliance with the License.
@@ -101,7 +101,7 @@ impl<'a> PartialEq<&'a ErrorKind> for ErrorKind {
101101
}
102102
}
103103

104-
impl<'a> PartialEq<ErrorKind> for &'a ErrorKind {
104+
impl PartialEq<ErrorKind> for &ErrorKind {
105105
fn eq(&self, other: &ErrorKind) -> bool {
106106
*self == other
107107
}

questdb-confstr/tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* \__\_\\__,_|\___||___/\__|____/|____/
77
*
88
* Copyright (c) 2014-2019 Appsicle
9-
* Copyright (c) 2019-2024 QuestDB
9+
* Copyright (c) 2019-2025 QuestDB
1010
*
1111
* Licensed under the Apache License, Version 2.0 (the "License");
1212
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)