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

Integrate Rust into build process #101

Closed
dankamongmen opened this issue Dec 2, 2019 · 7 comments
Closed

Integrate Rust into build process #101

dankamongmen opened this issue Dec 2, 2019 · 7 comments
Assignees
Milestone

Comments

@dankamongmen
Copy link
Owner

I'd like people to be able to write notcurses programs in Rust. Hack up some nice bindings.

@dankamongmen
Copy link
Owner Author

I've manifested my destiny all over the crates.io namespace:

https://crates.io/crates/notcurses

now to actually write some bindings :D

@dankamongmen dankamongmen self-assigned this Dec 25, 2019
@dankamongmen dankamongmen modified the milestone: v1.1.0 Jan 5, 2020
dankamongmen added a commit that referenced this issue Feb 5, 2020
@dankamongmen
Copy link
Owner Author

We're uploading and maintaining libnotcurses-sys, generated by bindgen. We ought make notcurses a nicer wrapper.

@dankamongmen dankamongmen added this to the 1.3.0 milestone Feb 18, 2020
@dankamongmen
Copy link
Owner Author

Add a simple rust demo if nothing else. I'd like to see this in 1.3.0.

@dankamongmen dankamongmen changed the title Rust bindings Simple rust demo Feb 18, 2020
@dankamongmen dankamongmen changed the title Simple rust demo Integrate Rust into build process Feb 18, 2020
@dankamongmen
Copy link
Owner Author

[schwarzgerat](130) $ rust/debug/colloquy 
[schwarzgerat](0) $ rust/debug/colloquy --help
colloquy 0.1.0
Nick Black <dankamongmen@gmail.com>
Attractive UI widgets from the shell

USAGE:
    colloquy [FLAGS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
    -v, --verbose    Verbose mode
[schwarzgerat](0) $ 

dankamongmen added a commit that referenced this issue Feb 18, 2020
* CMake: add USE_PANDOC, USE_DOXYGEN options #101
* README: mention rust
* start integrating rust into build #101
* CMake: add USE_NETWORK option for cargo
* Debian: build-dep on doxygen
* rust: colloquy checks in Cargo.lock
* extract NCKEY defines into their own include
* colloquy: use clap to parse CLI args
* CMake: unify option namespace
* Python: update include path
* Rust: fix up --frozen workings for -DUSE_NETWORK=off
* CMake: abstract out colloquy a little
* Sync direct.hh to the New Way
@dankamongmen
Copy link
Owner Author

If we want to run the libnotcurses-sys and notcurses Rust builds in our process, we'll need pass them a pkg-config path, since libnotcurses-sys looks for it.

@dankamongmen
Copy link
Owner Author

We can just export PKG_CONFIG_PATH to cargo; it gets passed through to pkg-config internally. However, our pkgconfig file isn't correct for the situation where we're calling this from our build...

@dankamongmen
Copy link
Owner Author

We're now building as part of the main CMake =]

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

1 participant