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

Using xh as a crate like reqwest #289

Closed
satvikpendem opened this issue Oct 24, 2022 · 1 comment
Closed

Using xh as a crate like reqwest #289

satvikpendem opened this issue Oct 24, 2022 · 1 comment

Comments

@satvikpendem
Copy link

Is there an option to use xh as a crate in my Rust code rather than as a command line application? I've seen #95 but looks like there have been no comments on it and that issue is over 1.5 years old so I'm not sure what has changed since then.

@ducaale
Copy link
Owner

ducaale commented Oct 24, 2022

What kind of Rust code were you planning to pull xh as a crate rather than reqwest? Answering that question would help us figure out how to approach the librarification of xh.

Currently, these are the use cases I can think of:

Another option is to extract certain parts of xh into their own crate, e.g, the nested-json module, which can be used to build a general-purpose JSON tool similar to https://github.com/jpmens/jo

With that being said, can we close this issue and continue this discussion in #95? Thanks

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