Skip to content

chore: Document build.rs usage in readme#79

Draft
d2weber wants to merge 1 commit into
mainfrom
d2weber/readme_build_rs
Draft

chore: Document build.rs usage in readme#79
d2weber wants to merge 1 commit into
mainfrom
d2weber/readme_build_rs

Conversation

@d2weber

@d2weber d2weber commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@link2xt

link2xt commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

I think examples should be updated too, to make sure this approach actually works and because users are likely to copy the example when starting a new project.

@d2weber
d2weber force-pushed the d2weber/readme_build_rs branch from 65e7665 to b9ed55b Compare July 16, 2026 11:09
Comment thread README.md
use std::path::Path;
**build.rs**
```rust
use crate::{write_ts_bindings, write_openrpc};

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

use .. write_ts_bindings from build.rs of the same crate will not work. To make a working example with build.rs we'd need two crates: one with the API and another one using the API in its' build.rs

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