amazon-ion / ion-schema-rust

Rust implementation of Ion Schema
https://amazon-ion.github.io/ion-schema/sandbox
Apache License 2.0
13 stars 6 forks source link

Convert project to Cargo workspace #127

Closed popematt closed 1 year ago

popematt commented 1 year ago

Issue #, if available:

None

Description of changes:

This change moves the main library into ion-schema/ directory, and makes the root of the repo into a cargo workspace. Most files are moved without any modifications, but there are a few that had to be modified because of file paths that are hard-coded in the tests.

I believe this refactor will make it easier to maintain in the long term since there is a single Cargo.lock file for the whole workspace as opposed to one for each crate. It will also make it easier if we ever decide we want to separate Ion Schema models and read/write logic from the validation logic, or add sub-projects/crates for any other reason.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.