Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ futures = "0.3"
pin-project = "1"
async-trait = "0.1"

# Protobuf. The 0.6 floor matches the regen baseline for the checked-in
# generated code: 0.6.0 adds `with_*` setters for explicit-presence fields,
# `MessageName`/`Serialize` impls on view types, and stops emitting empty
# `__oneof`/`__ext`/`__view_oneof` ancillary files. (connectrpc-build also
# sources the generated `mod.rs` `#[allow(...)]` list from
# `buffa_codegen::ALLOW_LINTS`, present since 0.5.1.)
buffa = { version = "0.6", features = ["json"] }
buffa-types = { version = "0.6", features = ["json"] }
buffa-codegen = { version = "0.6" }
# Protobuf. The 0.7 floor matches the regen baseline for the checked-in
# generated code and the request/stream-item API: 0.7.0 adds the
# `HasMessageView` trait and the generated `FooOwnedView` accessor wrappers
# that `ServiceRequest`/`StreamMessage` are built on, and removes the
# `OwnedView` `Deref` impl that earlier handler signatures relied on.
# (connectrpc-build also sources the generated `mod.rs` `#[allow(...)]` list
# from `buffa_codegen::ALLOW_LINTS`, present since 0.5.1.)
buffa = { version = "0.7", features = ["json"] }
buffa-types = { version = "0.7", features = ["json"] }
buffa-codegen = { version = "0.7" }

# Serialization
serde = { version = "1", features = ["derive"] }
Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ Changing the mount point requires regenerating.

> The underlying option is `extern_path=.=crate::proto` - same format the
> Buf Schema Registry uses when generating Cargo SDKs. `buffa_module=X`
> is shorthand for the `.` catch-all case.
> is shorthand for the `.` catch-all case. Any module an `extern_path`
> points at must be buffa-generated code from buffa 0.7.0 or newer with
> views enabled (buffa-types 0.7+ for the well-known types): the service
> stubs rely on the `HasMessageView` impls and owned-view wrappers that
> buffa generates alongside each message, just as they rely on the JSON
> serialization impls.

#### Option B - `build.rs` (generated at build time)

Expand Down Expand Up @@ -346,8 +351,8 @@ Code generated by `protoc-gen-connect-rust` requires these dependencies:
```toml
[dependencies]
connectrpc = { version = "0.6", features = ["client"] }
buffa = { version = "0.6", features = ["json"] }
buffa-types = { version = "0.6", features = ["json"] }
buffa = { version = "0.7", features = ["json"] }
buffa-types = { version = "0.7", features = ["json"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
http-body = "1"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading