Skip to content

Refactor od2net core into reusable library #97

@Robinlovelace

Description

@Robinlovelace

Extract the CLI logic from src/main.rs into src/lib.rs, expose public entry points (run_pipeline, Network, Request, cost models), and keep a tiny binary wrapper so downstream tools can call the same code. This should enable bindings to feed configs and requests in memory while leaving the existing CLI behavior unchanged according to my understanding.

Context: I'm interested in R and Python interfaces to Rust via extendr, savvy and pyo3 and believe these changes are a pre-requisite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions