From b0bbcf055476a30916ae7ed67b1166d09c823005 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski Date: Thu, 21 Nov 2024 20:28:30 +0000 Subject: [PATCH] Switch Rust code to dashes instead of underscores. --- .github/workflows/build_langsmith_pyo3_wheels.yml | 6 +++--- rust/Cargo.lock | 6 +++--- rust/Cargo.toml | 4 ++-- .../{langsmith_pyo3 => langsmith-pyo3}/.cargo/config.toml | 0 rust/crates/{langsmith_pyo3 => langsmith-pyo3}/.gitignore | 0 rust/crates/{langsmith_pyo3 => langsmith-pyo3}/Cargo.toml | 4 ++-- rust/crates/{langsmith_pyo3 => langsmith-pyo3}/README.md | 4 ++-- .../{langsmith_pyo3 => langsmith-pyo3}/pyproject.toml | 2 +- .../src/blocking_tracing_client.rs | 0 .../crates/{langsmith_pyo3 => langsmith-pyo3}/src/errors.rs | 0 rust/crates/{langsmith_pyo3 => langsmith-pyo3}/src/lib.rs | 0 .../crates/{langsmith_pyo3 => langsmith-pyo3}/src/py_run.rs | 0 .../src/serialization/mod.rs | 0 .../src/serialization/writer.rs | 0 .../Cargo.toml | 2 +- .../benches/json_serialization_benchmark.rs | 0 .../benches/tracing_client_benchmark.rs | 0 .../src/client/async_enabled/mod.rs | 0 .../src/client/async_enabled/processor.rs | 0 .../src/client/async_enabled/tracing_client.rs | 0 .../src/client/blocking/mod.rs | 0 .../src/client/blocking/processor.rs | 0 .../src/client/blocking/tracing_client.rs | 0 .../src/client/errors.rs | 0 .../src/client/mod.rs | 0 .../src/client/run.rs | 0 .../src/lib.rs | 0 .../src/main.rs | 0 .../tests/test_run.rs | 0 .../tests/tracing_client_test.rs | 0 30 files changed, 14 insertions(+), 14 deletions(-) rename rust/crates/{langsmith_pyo3 => langsmith-pyo3}/.cargo/config.toml (100%) rename rust/crates/{langsmith_pyo3 => langsmith-pyo3}/.gitignore (100%) rename rust/crates/{langsmith_pyo3 => langsmith-pyo3}/Cargo.toml (94%) rename rust/crates/{langsmith_pyo3 => langsmith-pyo3}/README.md (93%) rename rust/crates/{langsmith_pyo3 => langsmith-pyo3}/pyproject.toml (93%) rename rust/crates/{langsmith_pyo3 => langsmith-pyo3}/src/blocking_tracing_client.rs (100%) rename rust/crates/{langsmith_pyo3 => langsmith-pyo3}/src/errors.rs (100%) rename rust/crates/{langsmith_pyo3 => langsmith-pyo3}/src/lib.rs (100%) rename rust/crates/{langsmith_pyo3 => langsmith-pyo3}/src/py_run.rs (100%) rename rust/crates/{langsmith_pyo3 => langsmith-pyo3}/src/serialization/mod.rs (100%) rename rust/crates/{langsmith_pyo3 => langsmith-pyo3}/src/serialization/writer.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/Cargo.toml (95%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/benches/json_serialization_benchmark.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/benches/tracing_client_benchmark.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/src/client/async_enabled/mod.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/src/client/async_enabled/processor.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/src/client/async_enabled/tracing_client.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/src/client/blocking/mod.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/src/client/blocking/processor.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/src/client/blocking/tracing_client.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/src/client/errors.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/src/client/mod.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/src/client/run.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/src/lib.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/src/main.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/tests/test_run.rs (100%) rename rust/crates/{langsmith_tracing_client => langsmith-tracing-client}/tests/tracing_client_test.rs (100%) diff --git a/.github/workflows/build_langsmith_pyo3_wheels.yml b/.github/workflows/build_langsmith_pyo3_wheels.yml index 894195914..a8a33264d 100644 --- a/.github/workflows/build_langsmith_pyo3_wheels.yml +++ b/.github/workflows/build_langsmith_pyo3_wheels.yml @@ -7,9 +7,9 @@ # # To find the changes applied on top of the autogenerated contents, diff this file # versus commit `c746f00fadb0c84d769be117643683d60eb07ba3` which has the raw autogenerated output. -name: Build langsmith_pyo3 wheels +name: Build langsmith-pyo3 wheels -# Our wheels build depends on both the `langsmith_pyo3` crate itself and all its dependencies: +# Our wheels build depends on both the `langsmith-pyo3` crate itself and all its dependencies: # - The Rust workspace-level dependency specification in `rust/Cargo.toml` and `rust/Cargo.lock`. # - Other local Rust crates, like `langsmith_tracing_client`. # - The vendored `orjson` and `pyo3` workspaces. @@ -38,7 +38,7 @@ permissions: env: RUST_VERSION: '1.82' # Be careful, "stable" gets you "whatever GitHub ships", which is quite old. SUPPORTED_PYTHON_VERSIONS: 'python3.8 python3.9 python3.10 python3.11 python3.12' - WORKING_DIRECTORY: rust/crates/langsmith_pyo3 + WORKING_DIRECTORY: rust/crates/langsmith-pyo3 jobs: linux: diff --git a/rust/Cargo.lock b/rust/Cargo.lock index ce1be419c..dbe3c7973 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -908,10 +908,10 @@ dependencies = [ ] [[package]] -name = "langsmith_pyo3" +name = "langsmith-pyo3" version = "0.1.0" dependencies = [ - "langsmith_tracing_client", + "langsmith-tracing-client", "orjson", "pyo3", "pyo3-ffi", @@ -920,7 +920,7 @@ dependencies = [ ] [[package]] -name = "langsmith_tracing_client" +name = "langsmith-tracing-client" version = "0.1.0" dependencies = [ "chrono", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 2b083f941..b4a2cd230 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,7 +1,7 @@ [workspace] members = [ - "crates/langsmith_pyo3", - "crates/langsmith_tracing_client", + "crates/langsmith-pyo3", + "crates/langsmith-tracing-client", ] resolver = "2" diff --git a/rust/crates/langsmith_pyo3/.cargo/config.toml b/rust/crates/langsmith-pyo3/.cargo/config.toml similarity index 100% rename from rust/crates/langsmith_pyo3/.cargo/config.toml rename to rust/crates/langsmith-pyo3/.cargo/config.toml diff --git a/rust/crates/langsmith_pyo3/.gitignore b/rust/crates/langsmith-pyo3/.gitignore similarity index 100% rename from rust/crates/langsmith_pyo3/.gitignore rename to rust/crates/langsmith-pyo3/.gitignore diff --git a/rust/crates/langsmith_pyo3/Cargo.toml b/rust/crates/langsmith-pyo3/Cargo.toml similarity index 94% rename from rust/crates/langsmith_pyo3/Cargo.toml rename to rust/crates/langsmith-pyo3/Cargo.toml index 3bc3bb914..26e73b9c8 100644 --- a/rust/crates/langsmith_pyo3/Cargo.toml +++ b/rust/crates/langsmith-pyo3/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "langsmith_pyo3" +name = "langsmith-pyo3" version = "0.1.0" edition = "2021" @@ -31,5 +31,5 @@ pyo3 = { path = "../../../vendor/pyo3", features = ["extension-module"] } pyo3-ffi = { path = "../../../vendor/pyo3/pyo3-ffi", features = ["extension-module"] } sonic-rs = { workspace = true } serde = { workspace = true } -langsmith_tracing_client = { path = "../langsmith_tracing_client" } +langsmith-tracing-client = { path = "../langsmith-tracing-client" } orjson = { path = "../../../vendor/orjson" } diff --git a/rust/crates/langsmith_pyo3/README.md b/rust/crates/langsmith-pyo3/README.md similarity index 93% rename from rust/crates/langsmith_pyo3/README.md rename to rust/crates/langsmith-pyo3/README.md index a7f4e7d2a..053084dc9 100644 --- a/rust/crates/langsmith_pyo3/README.md +++ b/rust/crates/langsmith-pyo3/README.md @@ -1,4 +1,4 @@ -# langsmith_pyo3 +# langsmith-pyo3 Python bindings for LangSmith internals. @@ -22,4 +22,4 @@ To make performance-optimized builds, append `--release` to either command. To run install these bindings into another virtualenv (e.g. to run benchmarks), activate that virtualenv, then `cd` to this directory and run `uvx maturin develop --release`. When that command completes, the virtualenv will have an optimized build -of `langsmith_pyo3` installed. +of `langsmith-pyo3` installed. diff --git a/rust/crates/langsmith_pyo3/pyproject.toml b/rust/crates/langsmith-pyo3/pyproject.toml similarity index 93% rename from rust/crates/langsmith_pyo3/pyproject.toml rename to rust/crates/langsmith-pyo3/pyproject.toml index 64be06a4b..7cd710d0b 100644 --- a/rust/crates/langsmith_pyo3/pyproject.toml +++ b/rust/crates/langsmith-pyo3/pyproject.toml @@ -3,7 +3,7 @@ requires = ["maturin>=1.7,<2.0"] build-backend = "maturin" [project] -name = "langsmith_pyo3" +name = "langsmith-pyo3" requires-python = ">=3.9" classifiers = [ "Programming Language :: Rust", diff --git a/rust/crates/langsmith_pyo3/src/blocking_tracing_client.rs b/rust/crates/langsmith-pyo3/src/blocking_tracing_client.rs similarity index 100% rename from rust/crates/langsmith_pyo3/src/blocking_tracing_client.rs rename to rust/crates/langsmith-pyo3/src/blocking_tracing_client.rs diff --git a/rust/crates/langsmith_pyo3/src/errors.rs b/rust/crates/langsmith-pyo3/src/errors.rs similarity index 100% rename from rust/crates/langsmith_pyo3/src/errors.rs rename to rust/crates/langsmith-pyo3/src/errors.rs diff --git a/rust/crates/langsmith_pyo3/src/lib.rs b/rust/crates/langsmith-pyo3/src/lib.rs similarity index 100% rename from rust/crates/langsmith_pyo3/src/lib.rs rename to rust/crates/langsmith-pyo3/src/lib.rs diff --git a/rust/crates/langsmith_pyo3/src/py_run.rs b/rust/crates/langsmith-pyo3/src/py_run.rs similarity index 100% rename from rust/crates/langsmith_pyo3/src/py_run.rs rename to rust/crates/langsmith-pyo3/src/py_run.rs diff --git a/rust/crates/langsmith_pyo3/src/serialization/mod.rs b/rust/crates/langsmith-pyo3/src/serialization/mod.rs similarity index 100% rename from rust/crates/langsmith_pyo3/src/serialization/mod.rs rename to rust/crates/langsmith-pyo3/src/serialization/mod.rs diff --git a/rust/crates/langsmith_pyo3/src/serialization/writer.rs b/rust/crates/langsmith-pyo3/src/serialization/writer.rs similarity index 100% rename from rust/crates/langsmith_pyo3/src/serialization/writer.rs rename to rust/crates/langsmith-pyo3/src/serialization/writer.rs diff --git a/rust/crates/langsmith_tracing_client/Cargo.toml b/rust/crates/langsmith-tracing-client/Cargo.toml similarity index 95% rename from rust/crates/langsmith_tracing_client/Cargo.toml rename to rust/crates/langsmith-tracing-client/Cargo.toml index f5c26d0a0..fd292fbb2 100644 --- a/rust/crates/langsmith_tracing_client/Cargo.toml +++ b/rust/crates/langsmith-tracing-client/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "langsmith_tracing_client" +name = "langsmith-tracing-client" version = "0.1.0" edition = "2021" diff --git a/rust/crates/langsmith_tracing_client/benches/json_serialization_benchmark.rs b/rust/crates/langsmith-tracing-client/benches/json_serialization_benchmark.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/benches/json_serialization_benchmark.rs rename to rust/crates/langsmith-tracing-client/benches/json_serialization_benchmark.rs diff --git a/rust/crates/langsmith_tracing_client/benches/tracing_client_benchmark.rs b/rust/crates/langsmith-tracing-client/benches/tracing_client_benchmark.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/benches/tracing_client_benchmark.rs rename to rust/crates/langsmith-tracing-client/benches/tracing_client_benchmark.rs diff --git a/rust/crates/langsmith_tracing_client/src/client/async_enabled/mod.rs b/rust/crates/langsmith-tracing-client/src/client/async_enabled/mod.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/src/client/async_enabled/mod.rs rename to rust/crates/langsmith-tracing-client/src/client/async_enabled/mod.rs diff --git a/rust/crates/langsmith_tracing_client/src/client/async_enabled/processor.rs b/rust/crates/langsmith-tracing-client/src/client/async_enabled/processor.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/src/client/async_enabled/processor.rs rename to rust/crates/langsmith-tracing-client/src/client/async_enabled/processor.rs diff --git a/rust/crates/langsmith_tracing_client/src/client/async_enabled/tracing_client.rs b/rust/crates/langsmith-tracing-client/src/client/async_enabled/tracing_client.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/src/client/async_enabled/tracing_client.rs rename to rust/crates/langsmith-tracing-client/src/client/async_enabled/tracing_client.rs diff --git a/rust/crates/langsmith_tracing_client/src/client/blocking/mod.rs b/rust/crates/langsmith-tracing-client/src/client/blocking/mod.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/src/client/blocking/mod.rs rename to rust/crates/langsmith-tracing-client/src/client/blocking/mod.rs diff --git a/rust/crates/langsmith_tracing_client/src/client/blocking/processor.rs b/rust/crates/langsmith-tracing-client/src/client/blocking/processor.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/src/client/blocking/processor.rs rename to rust/crates/langsmith-tracing-client/src/client/blocking/processor.rs diff --git a/rust/crates/langsmith_tracing_client/src/client/blocking/tracing_client.rs b/rust/crates/langsmith-tracing-client/src/client/blocking/tracing_client.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/src/client/blocking/tracing_client.rs rename to rust/crates/langsmith-tracing-client/src/client/blocking/tracing_client.rs diff --git a/rust/crates/langsmith_tracing_client/src/client/errors.rs b/rust/crates/langsmith-tracing-client/src/client/errors.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/src/client/errors.rs rename to rust/crates/langsmith-tracing-client/src/client/errors.rs diff --git a/rust/crates/langsmith_tracing_client/src/client/mod.rs b/rust/crates/langsmith-tracing-client/src/client/mod.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/src/client/mod.rs rename to rust/crates/langsmith-tracing-client/src/client/mod.rs diff --git a/rust/crates/langsmith_tracing_client/src/client/run.rs b/rust/crates/langsmith-tracing-client/src/client/run.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/src/client/run.rs rename to rust/crates/langsmith-tracing-client/src/client/run.rs diff --git a/rust/crates/langsmith_tracing_client/src/lib.rs b/rust/crates/langsmith-tracing-client/src/lib.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/src/lib.rs rename to rust/crates/langsmith-tracing-client/src/lib.rs diff --git a/rust/crates/langsmith_tracing_client/src/main.rs b/rust/crates/langsmith-tracing-client/src/main.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/src/main.rs rename to rust/crates/langsmith-tracing-client/src/main.rs diff --git a/rust/crates/langsmith_tracing_client/tests/test_run.rs b/rust/crates/langsmith-tracing-client/tests/test_run.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/tests/test_run.rs rename to rust/crates/langsmith-tracing-client/tests/test_run.rs diff --git a/rust/crates/langsmith_tracing_client/tests/tracing_client_test.rs b/rust/crates/langsmith-tracing-client/tests/tracing_client_test.rs similarity index 100% rename from rust/crates/langsmith_tracing_client/tests/tracing_client_test.rs rename to rust/crates/langsmith-tracing-client/tests/tracing_client_test.rs