Skip to content

Expose od2net as a reusable library#98

Open
Robinlovelace wants to merge 2 commits intoa-b-street:mainfrom
Robinlovelace:lib
Open

Expose od2net as a reusable library#98
Robinlovelace wants to merge 2 commits intoa-b-street:mainfrom
Robinlovelace:lib

Conversation

@Robinlovelace
Copy link
Copy Markdown
Contributor

Closes #97.

  • move the existing pipeline from src/main.rs into src/lib.rs and re-export key modules/types so downstream bindings can call od2net programmatically
  • keep src/main.rs as a tiny wrapper that parses CLI args (CliArgs) and calls run_pipeline, preserving the current command-line UX
  • introduce OutputMetadata plus public APIs (Network, Request, CostFunction) needed by R/Python/WASM consumers and document the new entrypoints in the code comments

Testing

  • cargo test

@Robinlovelace
Copy link
Copy Markdown
Contributor Author

Disclaimer: AI generated.

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.

Refactor od2net core into reusable library

1 participant