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

Remove concat_ident! for module expressions, enable building on stable #12

Merged
merged 1 commit into from
Dec 2, 2015

Conversation

skade
Copy link
Contributor

@skade skade commented Dec 1, 2015

Enables rust-blas to build on Rust stable.

This sorts the function prototypes in the FFI by group, and changes the prefix! and similar macros to using the new modules instead of concat_indent!.

The future of concat_ident! is uncertain: rust-lang/rust#29599

Enables rust-blas to build on Rust stable
@skade skade changed the title Remove concat_ident! for module expressions Remove concat_ident! for module expressions, enable building on stable Dec 1, 2015
mikkyang added a commit that referenced this pull request Dec 2, 2015
Remove concat_ident! for module expressions, enable building on stable
@mikkyang mikkyang merged commit f712b86 into mikkyang:master Dec 2, 2015
@mikkyang
Copy link
Owner

mikkyang commented Dec 2, 2015

Looks great! Thanks for the work. It's a pretty clever workaround for the modules.

@skade
Copy link
Contributor Author

skade commented Dec 2, 2015

I would say prefixing names is a workaround for a lack of modules in C and this just unwraps the workaround :).

I saw that you bumped a version - will you do a release soon? (asking for collenchyma)

@skade skade deleted the move-to-stable branch December 2, 2015 14:19
@mikkyang
Copy link
Owner

mikkyang commented Dec 2, 2015

Yeah, I forgot to cargo publish after packaging it. It should be up now.

@skade
Copy link
Contributor Author

skade commented Dec 2, 2015

Perfect, thanks for all the work 👍

homu added a commit to autumnai/collenchyma that referenced this pull request Dec 2, 2015
Move to stable

This PR removes unnecessary use of feature flags that bar using Rust on stable([1])([2]) compilers.

Reasons being:
* associated consts (Tracking issue: rust-lang/rust#29646) are currently buggy and can be replaced by an fn in that case.
* associated_type_defaults can be removed without breakage
* unboxed_closures can be removed without breakage
* StaticMutex has an uncertain future (rust-lang/rust#27717) and can be emulated in that case by using `lazy_static!` (correct me if I'm wrong)

Finally, I must admit that I didn't get the test suite running quickly.

([1]) Outstanding: this doesn't _quite_ work on stable yet, as some APIs in use are currently making their way through beta, so they are not feature gated, but also not available in 1.4.0. 1.5.0 beta works and as 1.5.0 is 2 weeks away, this is probably not worth the effort.
([2]) rblas is not on stable yet, see mikkyang/rust-blas#12 for that. You can use that version of rust-blas by checking it out from my https://github.com/skade/rust-blas/ and dropping the following `.cargo/config` in your repository:

```
paths = ["/path/to/rblas/checkout"]
```
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

Successfully merging this pull request may close these issues.

None yet

2 participants