Skip to content

Conversation

brianjjones
Copy link
Contributor

The runtime bindings have no use for the the build-dependencies of tensorflow-sys, nor the build.rs. So to avoid pulling in those dependencies, and hopefully to keep things cleaner, I'd like to move them into their own crate.

Currently the runtime bindings live inside of
tensorflow-sys, which includes several packages for
building tensorflow. These packages aren't needed
for the runtime bindings at all, and this seems like
the logical way to separate the two.
@brianjjones
Copy link
Contributor Author

Hi @adamcrume , could I get some feedback on this when you get a chance? Thanks.

Copy link
Contributor

@adamcrume adamcrume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RELEASING.md needs to be updated.

${cmd}

echo "link! {\n$(cat src/runtime_linking/c_api.rs)" > src/runtime_linking/c_api.rs
echo } >> src/runtime_linking/c_api.rs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the runtime bits should be removed from tensorflow-sys/generate_bindgen_rs.sh.

@adamcrume
Copy link
Contributor

Sorry for the delay!

- RELEASING.md now has info about the new tensorflow-sys-runtime crate.
- Additional info in the tensorflow-sys-runtime README.md showing how to use it.
- Adding the version to tensorflow-sys-runtime in the main Cargo.toml
- Removing runtime linking bindgen calls from tensorflow-sys/generate_bindgen_rs.sh
@brianjjones
Copy link
Contributor Author

@adamcrume Thanks for the review. I've updated the PR with the requested changes, let me know if there's anything else.

@adamcrume adamcrume merged commit ece45d1 into tensorflow:master Oct 29, 2022
@adamcrume
Copy link
Contributor

Thanks!

@brianjjones
Copy link
Contributor Author

@adamcrume Great, thanks for that. Any idea when I can expect a new version to be pushed to crates.io?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants