Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with using as standalone Rust library #49

Open
KonstFed opened this issue Dec 25, 2024 · 1 comment
Open

Problems with using as standalone Rust library #49

KonstFed opened this issue Dec 25, 2024 · 1 comment

Comments

@KonstFed
Copy link

Problem

I have tried to use this project as rust library but some function require custom structures which are now private.

For example function in GraphGenerator:
image

In this case DocumentSymbol is a part of lsp_types, which is private.

Workaround

If it is okay to expose all structures easiest workaround is to make everything public like this:

pub mod generator;
pub mod graph;
pub mod lang;
pub mod lsp_types;

pub use generator::GraphGenerator;

In any case, can you please solve this issue?

@chanhx
Copy link
Owner

chanhx commented Dec 30, 2024

Since the output of this crate is just a string, I didn't make these internal modules public. But I'm refactoring this project recently, and the output of the crate will be a graph structure, and all related structures will be public in the next version.

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

No branches or pull requests

2 participants