Skip to content

Commit c0c109f

Browse files
authored
Restructure repository (#35)
## Problem OpenAPI generates Rust code in the form of a crate. To publish our SDK without separately publishing the OpenAPI code as its own crate, we want to include it as a module in our SDK instead of as an external dependency. ## Solution - Remove workspace and make `pinecone_sdk` the root project. - OpenAPI code generates to temporary folder `.openapi-crate`. - OpenAPI dependencies are added to `Cargo.toml` for `pinecone_sdk`. - Bash script copies source files from the generated crate into `src/openapi` and also updates imports in these files to reflect the new project structure. - Protobuf code is also moved into `src/protos` and turned into a module. - Disables warnings for generated code (openapi and proto). ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [x] Infrastructure change (CI configs, etc) - [ ] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan All existing test cases pass.
1 parent 1b518ef commit c0c109f

File tree

85 files changed

+308
-1051
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+308
-1051
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ outer-protos/thirdparty/**
99
**/.env
1010
**/.swp
1111

12+
.openapi-crate/
13+
1214

1315
# IDE, editor, and OS-specific files
1416
.idea/

0 commit comments

Comments
 (0)