Skip to content

Commit

Permalink
Remove MUSL notice and update supportt text
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Jul 28, 2022
1 parent ba4f551 commit 3955dbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ Idea inspired by [this code](https://github.com/neon-bindings/neon/blob/2277e943

## Support

This library works and [has been tested](https://travis-ci.org/mmastrac/rust-ctor)
for Linux, OSX and Windows, with both `+crt-static` and `-crt-static`. This
library will also work as expected in both `bin` and `cdylib` outputs,
ie: the `ctor` and `dtor` will run at executable or library
This library works and [is regularly tested](https://travis-ci.org/mmastrac/rust-ctor)
on Linux, OSX and Windows, with both `+crt-static` and `-crt-static`. Other platforms are supported
but not tested as part of the automatic builds. This library will also work as expected in both
`bin` and `cdylib` outputs, ie: the `ctor` and `dtor` will run at executable or library
startup/shutdown respectively.

`musl` is supported, but as `proc_macro` does not work on that target ([due to the lack
of dynamic linking](https://github.com/rust-lang/rust/issues/40174)), you'll need to use `cross` or another cross-compilation solution.

## Warnings

Rust's philosophy is that nothing happens before or after main and
Expand Down
6 changes: 3 additions & 3 deletions ctor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//! `__attribute__((constructor))` in C/C++) for Linux, OSX, and Windows via
//! the `#[ctor]` and `#[dtor]` macros.
//!
//! This library works and has been tested for Linux, OSX and Windows. This
//! library will also work as expected in both `bin` and `cdylib` outputs,
//! ie: the `ctor` and `dtor` will run at executable or library
//! This library works and is regularly tested on Linux, OSX and Windows, with both `+crt-static` and `-crt-static`.
//! Other platforms are supported but not tested as part of the automatic builds. This library will also work as expected in both
//! `bin` and `cdylib` outputs, ie: the `ctor` and `dtor` will run at executable or library
//! startup/shutdown respectively.
//!
//! This library currently requires Rust > `1.31.0` at a minimum for the
Expand Down

0 comments on commit 3955dbf

Please sign in to comment.