From 3955dbfccb2c800b52f49d4f1627d99004bdf46f Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Thu, 28 Jul 2022 17:23:10 -0600 Subject: [PATCH] Remove MUSL notice and update supportt text --- README.md | 11 ++++------- ctor/src/lib.rs | 6 +++--- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 7f21fa9..faa1b2b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ctor/src/lib.rs b/ctor/src/lib.rs index 069f816..1aad0d5 100644 --- a/ctor/src/lib.rs +++ b/ctor/src/lib.rs @@ -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