Skip to content

Commit 1d74bfc

Browse files
authored
chore(rust): swapped crypto backend to aws-lc and updated crate dependencies for ureq, rustls, webpki-roots and others (#96)
1 parent 9ce80f2 commit 1d74bfc

31 files changed

+977
-375
lines changed

cbindgen.toml

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

ci/run_all_tests.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,20 @@ def main():
4141
build_cxx20_dir.glob(f'**/test_line_sender{exe_suffix}')))
4242

4343
system_test_path = pathlib.Path('system_test') / 'test.py'
44-
qdb_v = '8.1.0' # The version of QuestDB we'll test against.
45-
46-
run_cmd('cargo', 'test', '--', '--nocapture', cwd='questdb-rs')
47-
run_cmd('cargo', 'test', '--all-features', '--', '--nocapture', cwd='questdb-rs')
44+
qdb_v = '8.2.3' # The version of QuestDB we'll test against.
45+
46+
run_cmd('cargo', 'test',
47+
'--', '--nocapture', cwd='questdb-rs')
48+
run_cmd('cargo', 'test', '--no-default-features', '--features=aws-lc-crypto,tls-native-certs',
49+
'--', '--nocapture', cwd='questdb-rs')
50+
run_cmd('cargo', 'test', '--no-default-features', '--features=ring-crypto,tls-native-certs,ilp-over-http',
51+
'--', '--nocapture', cwd='questdb-rs')
52+
run_cmd('cargo', 'test', '--features=almost-all-features',
53+
'--', '--nocapture', cwd='questdb-rs')
4854
run_cmd(str(test_line_sender_path))
4955
run_cmd(str(test_line_sender_path_CXX20))
5056
run_cmd('python3', str(system_test_path), 'run', '--versions', qdb_v, '-v')
5157

5258

5359
if __name__ == '__main__':
54-
main()
60+
main()

ci/run_tests_pipeline.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ stages:
5252
- template: compile.yaml
5353
- script: |
5454
cd questdb-rs
55-
cargo build --examples --all-features
55+
cargo build --examples --features almost-all-features
5656
displayName: "Build Rust examples"
5757
- script: python3 ci/run_all_tests.py
5858
env:
@@ -80,7 +80,7 @@ stages:
8080
displayName: "questdb-rs: fmt"
8181
- script: |
8282
cd questdb-rs
83-
cargo clippy --all-targets --all-features -- -D warnings
83+
cargo clippy --all-targets --features almost-all-features -- -D warnings
8484
displayName: "questdb-rs: clippy"
8585
- script: |
8686
cd questdb-rs-ffi

cpp_test/build_env.h

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.

cpp_test/mock_server.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.

cpp_test/mock_server.hpp

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.

cpp_test/test_line_sender.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.

include/questdb/ingress/line_sender.h

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.

include/questdb/ingress/line_sender.hpp

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)