Skip to content

Commit 3e16e96

Browse files
authored
RD-1207558 | Binary Build Requirements Compliance (#36901)
### Description Standardize Rust package naming to comply with Fivetran binary build pipeline - Renamed library crate from mz-fivetran-destination to fivetran-destination in Cargo.toml, as the Fivetran binary build pipeline requires the package name to be exactly fivetran_destination and builds via cargo build --release -p fivetran_destination. - Updated binary entry point (mz-fivetran-destination.rs) to import from the correctly named crate (fivetran_destination:: instead of mz_fivetran_destination::). - Updated README to reflect the correct binary output path produced by the pipeline (target/release/mz-fivetran-destination). The changes have been made as per this requirements page published by Fivetran: https://github.com/fivetran/fivetran_partner_sdk/blob/main/development-guide/binary-build-requirements.md ### Verification Verified with using the current branch to build the binary using pipeline and it succeeded. <img width="470" height="426" alt="Screenshot 2026-06-07 at 8 48 17 PM" src="https://github.com/user-attachments/assets/8ac4b06c-8d07-4d1a-8ed7-5c077a1eedf6" />
1 parent 5ad7e36 commit 3e16e96

4 files changed

Lines changed: 44 additions & 44 deletions

File tree

Cargo.lock

Lines changed: 39 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/fivetran-destination/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "mz-fivetran-destination"
2+
name = "fivetran_destination"
33
description = "Fivetran destination for Materialize."
44
version = "0.0.0"
55
edition.workspace = true

src/fivetran-destination/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ for instructions.
2323
To build the destination into a static Rust binary, run:
2424

2525
```shell
26-
cargo build --release -p mz-fivetran-destination
26+
cargo build --release -p fivetran_destination
2727
```
2828

2929
> **Note:** If you already have [`protoc`](https://grpc.io/docs/protoc-installation/) installed
3030
and in your PATH, you can skip building the vendored version with:
3131

3232
```shell
33-
cargo build --release -p mz-fivetran-destination --no-default-features
33+
cargo build --release -p fivetran_destination --no-default-features
3434
```
3535

3636
Cargo will emit the built binary at

src/fivetran-destination/src/bin/mz-fivetran-destination.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
//! Fivetran destination for Materialize.
1111
12-
use mz_fivetran_destination::logging::FivetranLoggingFormat;
13-
use mz_fivetran_destination::{DestinationConnectorServer, MaterializeDestination};
12+
use fivetran_destination::logging::FivetranLoggingFormat;
13+
use fivetran_destination::{DestinationConnectorServer, MaterializeDestination};
1414
use mz_ore::cli::{self, CliConfig};
1515
use mz_ore::error::ErrorExt;
1616
use socket2::{Domain, Protocol, Socket, Type};

0 commit comments

Comments
 (0)