-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: issue while building the crate by
doc.rs
When the crate is built by `doc.rs` the source code is put in a read-only file system and we can't modify source files. As we were doing with `modules.rs`. Now `build.rs` detects when the create is being built by `doc.rs` and doesn't update the `modules.rs` file. The `add_modules.rs` file is now stored in the repository for consistency and simplicity.
- Loading branch information
Showing
5 changed files
with
149 additions
and
101 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// File generated automatically by build.rs. Do not edit. | ||
{ | ||
#[cfg(feature = "string-module")] | ||
add_module!(modules, "string", string, "string.String", Some("string"), Some(string::__main__ as MainFn)); | ||
#[cfg(feature = "macho-module")] | ||
add_module!(modules, "macho", macho, "macho.Macho", Some("macho"), Some(macho::__main__ as MainFn)); | ||
#[cfg(feature = "pe-module")] | ||
add_module!(modules, "pe", pe, "pe.PE", Some("pe"), Some(pe::__main__ as MainFn)); | ||
#[cfg(feature = "elf-module")] | ||
add_module!(modules, "elf", elf, "elf.ELF", Some("elf"), Some(elf::__main__ as MainFn)); | ||
#[cfg(feature = "text-module")] | ||
add_module!(modules, "text", text, "text.Text", Some("text"), Some(text::__main__ as MainFn)); | ||
#[cfg(feature = "dotnet-module")] | ||
add_module!(modules, "dotnet", dotnet, "dotnet.Dotnet", Some("dotnet"), Some(dotnet::__main__ as MainFn)); | ||
#[cfg(feature = "lnk-module")] | ||
add_module!(modules, "lnk", lnk, "lnk.Lnk", Some("lnk"), Some(lnk::__main__ as MainFn)); | ||
#[cfg(feature = "hash-module")] | ||
add_module!(modules, "hash", hash, "hash.Hash", Some("hash"), Some(hash::__main__ as MainFn)); | ||
#[cfg(feature = "magic-module")] | ||
add_module!(modules, "magic", magic, "magic.Magic", Some("magic"), Some(magic::__main__ as MainFn)); | ||
#[cfg(feature = "math-module")] | ||
add_module!(modules, "math", math, "math.Math", Some("math"), Some(math::__main__ as MainFn)); | ||
#[cfg(feature = "test_proto2-module")] | ||
add_module!(modules, "test_proto2", test_proto2, "test_proto2.TestProto2", Some("test_proto2"), Some(test_proto2::__main__ as MainFn)); | ||
#[cfg(feature = "time-module")] | ||
add_module!(modules, "time", time, "time.Time", Some("time"), Some(time::__main__ as MainFn)); | ||
#[cfg(feature = "test_proto3-module")] | ||
add_module!(modules, "test_proto3", test_proto3, "test_proto3.TestProto3", Some("test_proto3"), Some(test_proto3::__main__ as MainFn)); | ||
#[cfg(feature = "console-module")] | ||
add_module!(modules, "console", console, "console.Console", Some("console"), Some(console::__main__ as MainFn)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters