Skip to content

Commit c011a7e

Browse files
authored
chore: add dependencies.tsv (#53)
1 parent 507a6fe commit c011a7e

File tree

10 files changed

+243
-10
lines changed

10 files changed

+243
-10
lines changed

.asf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
github:
2121
description: >-
2222
Apache HoraeDB (Incubating) Rust Client.
23-
homepage: https://apache.github.io/incubator-horaedb-docs # TODO: after website is ready, set to https://horaedb.apache.org/
23+
homepage: https://horaedb.apache.org/
2424
labels:
2525
- rust
2626
- sql

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ name = "horaedb-client"
2020
version = "2.0.0"
2121
authors = ["HoraeDB Authors"]
2222
edition = "2021"
23-
repository = "https://github.com/apache/incubator-horaedb-client-rs"
23+
repository = "https://github.com/apache/horaedb-client-rs"
2424
license = "Apache-2.0"
2525
description = "Apache HoraeDB (Incubating) Rust Client."
2626
readme = "README.md"

DEPENDENCIES.tsv

Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
crate 0BSD Apache-2.0 Apache-2.0 WITH LLVM-exception BSD-3-Clause BSL-1.0 CC0-1.0 MIT Unicode-DFS-2016 Unlicense Zlib
2+
3+
4+
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+
46+
47+
48+
49+
50+
51+
52+
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+
68+
69+
70+
71+
72+
73+
74+
75+
76+
77+
78+
79+
80+
81+
82+
83+
84+
85+
86+
87+
88+
89+
90+
91+
92+
93+
94+
95+
96+
97+
98+
99+
100+
101+
102+
103+
104+
105+
106+
107+
108+
109+
110+
111+
112+
113+
114+
115+
116+
117+
118+
119+
120+
121+
122+
123+
124+
125+
126+
[email protected]+deprecated X X
127+
128+
129+
130+
131+
132+
133+
134+
135+
136+
137+
138+
139+
140+
141+
142+
143+
144+
145+
146+
147+
148+
149+
150+
151+
152+
153+
154+
155+
156+
157+
158+
159+
160+
161+
162+
163+
164+
165+
166+
167+
168+
169+
170+
171+
172+
173+
174+
175+
176+
177+
178+
179+
180+
181+
182+
183+
184+
185+
186+
187+
188+
189+
190+
191+
[email protected]+wasi-snapshot-preview1 X X X
192+
[email protected]+wasi-snapshot-preview1 X X X
193+
194+
195+
196+
197+
198+
199+
200+
201+
202+
203+
204+
205+
206+
207+
208+
209+
210+
211+
212+
213+
214+
215+
216+
217+
218+
219+
220+
221+
222+
[email protected]+zstd.1.5.2 X
223+
[email protected]+zstd.1.5.4 X X
224+
[email protected]+zstd.1.5.5 X X

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ check-toml:
1616

1717
dry-run:
1818
cd $(DIR); cargo publish --dry-run --registry crates-io
19+
20+
list-deps:
21+
cd $(DIR); cargo deny list -f tsv -l crate > DEPENDENCIES.tsv

NOTICE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Apache HoraeDB (Incubating)
2+
Copyright 2024 The Apache Software Foundation
3+
4+
This product includes software developed at
5+
The Apache Software Foundation (http://www.apache.org/).

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Introduction
77

8-
Rust client for [Apache HoraeDB (Incubating)](https://github.com/apache/incubator-horaedb).
8+
Rust client for [Apache HoraeDB (Incubating)](https://github.com/apache/horaedb).
99

1010
> [!IMPORTANT]
1111
> Apache HoraeDB (incubating) is an effort undergoing incubation at the Apache
@@ -22,7 +22,7 @@ Rust client for [Apache HoraeDB (Incubating)](https://github.com/apache/incubato
2222

2323
Any contribution is welcome!
2424

25-
Read our [Contributing Guide](https://github.com/apache/incubator-horaedb/blob/main/CONTRIBUTING.md) and make your first contribution!
25+
Read our [Contributing Guide](https://github.com/apache/horaedb/blob/main/CONTRIBUTING.md) and make your first contribution!
2626

2727
## License
2828

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
# under the License.
1717

1818
[toolchain]
19-
channel = "nightly-2023-08-28"
19+
channel = "stable"
2020
components = ["cargo", "rustfmt", "clippy", "rust-analyzer"]

src/router.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,26 +167,26 @@ mod test {
167167
let tables = vec![table1.clone(), table2.clone()];
168168
let route_client = RouterImpl::new(default_endpoint.clone(), Arc::new(mock_rpc_client));
169169
let route_res1 = route_client.route(&tables, &ctx).await.unwrap();
170-
assert_eq!(&endpoint1, route_res1.get(0).unwrap().as_ref().unwrap());
170+
assert_eq!(&endpoint1, route_res1.first().unwrap().as_ref().unwrap());
171171
assert_eq!(&endpoint2, route_res1.get(1).unwrap().as_ref().unwrap());
172172

173173
route_table.insert(table1.clone(), endpoint3.clone());
174174
route_table.insert(table2.clone(), endpoint4.clone());
175175

176176
let route_res2 = route_client.route(&tables, &ctx).await.unwrap();
177-
assert_eq!(&endpoint1, route_res2.get(0).unwrap().as_ref().unwrap());
177+
assert_eq!(&endpoint1, route_res2.first().unwrap().as_ref().unwrap());
178178
assert_eq!(&endpoint2, route_res2.get(1).unwrap().as_ref().unwrap());
179179

180180
route_client.evict(&[table1.clone(), table2.clone()]);
181181

182182
let route_res3 = route_client.route(&tables, &ctx).await.unwrap();
183-
assert_eq!(&endpoint3, route_res3.get(0).unwrap().as_ref().unwrap());
183+
assert_eq!(&endpoint3, route_res3.first().unwrap().as_ref().unwrap());
184184
assert_eq!(&endpoint4, route_res3.get(1).unwrap().as_ref().unwrap());
185185

186186
let route_res4 = route_client.route(&[table3, table4], &ctx).await.unwrap();
187187
assert_eq!(
188188
&default_endpoint,
189-
route_res4.get(0).unwrap().as_ref().unwrap()
189+
route_res4.first().unwrap().as_ref().unwrap()
190190
);
191191
assert_eq!(
192192
&default_endpoint,

src/rpc_client/mock_rpc_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl RpcClient for MockRpcClient {
6262
ip: endpoint.addr,
6363
port: endpoint.port,
6464
};
65-
route_pb.table = m.clone();
65+
route_pb.table.clone_from(m);
6666
route_pb.endpoint = Some(endpoint_pb);
6767
Some(route_pb)
6868
})

src/rpc_client/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use horaedbproto::storage::{
2626
SqlQueryRequest as QueryRequestPb, SqlQueryResponse as QueryResponsePb,
2727
WriteRequest as WriteRequestPb, WriteResponse as WriteResponsePb,
2828
};
29+
#[cfg(test)]
2930
pub use mock_rpc_client::MockRpcClient;
3031
pub use rpc_client_impl::RpcClientImplFactory;
3132

0 commit comments

Comments
 (0)