On Sun, Jan 24, 2016 at 12:22:15AM +0100, Lampshade wrote:
> I wonder if this port is still usable with current version of Rust and Cargo?
> Rust 1.6 was announced. In previous version of Rust 1.5 there was added 
> cargo install
> command to allow install Rust applications to local systems,
> so it becomes more and more complete and stabilized.

I am not sure to understand all your meaning...

But OpenBSD currently have:
  - rustc 1.6.0 available on lang/rust port
  - cargo effort is in progress (in openbsd-wip port)


The purpose of devel/cargo/bootstrap (in openbsd-wip) is to have a way
to build a cargo binary without cargo.

The actual upstream build process for building cargo is "use cargo to
build it".

This particular version of cargo (devel/cargo/bootstrap) is 0.5.0. It is
build using a python script that mimics lots of cargo feature, in order
to build a working cargo binary.

Currently, I work on making a "true" cargo binary (version 0.8.0) using
the devel/cargo/bootstrap as bootstrapper.


For now, you can already build a cargo yourself, using the bootstrapper:

1. build and install devel/cargo/bootstrap (it lives in openbsd-wip).
   you will get a /usr/local/libexec/cargo-bootstrap/cargo binary

2. fetch and extract cargo source

3. configure it using `--local-cargo' option:
$ ./configure --local-cargo=/usr/local/libexec/cargo-bootstrap/cargo

4. run make
$ gmake

5. enjoy.

The packaging is a bit more complex, as the building requires
downloading of third-parties source files, which isn't desirable for a
package.

-- 
Sebastien Marie

Reply via email to