Skip to content

Commit 5dd9ac4

Browse files
committed
Include new proc macros crate
1 parent 143748e commit 5dd9ac4

File tree

10 files changed

+30
-8
lines changed

10 files changed

+30
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ members = [
1717
"gel-tokio",
1818
"examples/globals",
1919
"examples/query-error",
20-
"tests",
20+
"tests", "gel-protogen-proc-macros",
2121
]
2222

2323
[profile.release]

gel-auth/src/gel/server_state_machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use gel_db_protocol::prelude::*;
21
use gel_db_protocol::errors::EdbError;
2+
use gel_db_protocol::prelude::*;
33
use gel_db_protocol::protocol::{
44
Annotation, AuthenticationOkBuilder, AuthenticationRequiredSASLMessageBuilder,
55
AuthenticationSASLContinueBuilder, AuthenticationSASLFinalBuilder,

gel-db-protocol/src/errors.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#[derive(
32
Clone, Copy, PartialEq, Eq, derive_more::Debug, derive_more::Error, derive_more::Display,
43
)]

gel-db-protocol/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pub mod protocol;
21
pub mod errors;
2+
pub mod protocol;
33

44
pub use gel_protogen::prelude;

gel-frontend/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ hexdump = "0.1.2"
3434
tracing = "0"
3535
tracing-subscriber = "0"
3636
x509-parser = "0.17"
37-
derive-io = { version = "=0.3.3", features = ["tokio"] }
37+
derive-io = { version = "=0.5.0", features = ["tokio"] }
3838
unflatter = "0.1.1"
3939
consume_on_drop = "0.1.1"
4040
tokio-util = "0.7"

gel-frontend/examples/listener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ use gel_frontend::listener::BoundServer;
1010
use gel_frontend::service::{AuthTarget, BabelfishService, ConnectionIdentity, StreamLanguage};
1111
use gel_frontend::stream::ListenerStream;
1212
use gel_pg_protocol::prelude::*;
13-
use uuid::Uuid;
1413
use hyper::Response;
1514
use tokio::io::ReadBuf;
1615
use tokio::io::{AsyncReadExt, AsyncWriteExt};
1716
use tracing::trace;
17+
use uuid::Uuid;
1818

1919
#[derive(Clone, Debug, Default)]
2020
struct ExampleService {
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[package]
2+
name = "gel-protogen-proc-macros"
3+
license = "MIT/Apache-2.0"
4+
version = "0.1.2"
5+
authors = ["MagicStack Inc. <hello@magic.io>"]
6+
edition = "2021"
7+
description = "Macros to make parsing and serializing of PostgreSQL-like protocols easier."
8+
readme = "README.md"
9+
rust-version.workspace = true
10+
11+
[lints]
12+
workspace = true
13+
14+
[lib]
15+
proc-macro = true
16+
17+
[dependencies]
18+
syn = { version = "2", features = ["full", "extra-traits"] }
19+
quote = "1"
20+
proc-macro2 = "1"
21+
22+
[dev-dependencies]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

gel-protogen/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ derive_more = { version = "2", features = ["debug", "display", "deref", "deref_m
1717
uuid = "1"
1818
const-str = "0.6"
1919
type-mapper = "=0.1.2"
20+
gel-protogen-proc-macros = { path = "../gel-protogen-proc-macros", version = "0.1.2" }
2021

2122
[dev-dependencies]
2223
pretty_assertions = "1.2.0"

gel-stream/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ __test_keys = []
3131

3232
[dependencies]
3333
derive_more = { version = "2", default-features = false, features = ["debug", "constructor", "from", "try_from", "display", "error"] }
34-
thiserror = "2"
3534
futures = "0.3"
3635
smallvec = "1"
37-
derive-io = "=0.4.1"
36+
derive-io = "=0.5.0"
3837

3938
# Given that this library may be used in multiple contexts, we want to limit the
4039
# features we enable by default.

0 commit comments

Comments
 (0)