-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Thermite to build/integrate the Rust+Ruby code
- Loading branch information
Showing
9 changed files
with
32 additions
and
50 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -14,3 +14,6 @@ mkmf.log | |
**/*.gem | ||
.idea | ||
/rubyspec_temp/ | ||
*.dll | ||
*.dylib | ||
*.so |
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
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,7 @@ | ||
require 'thermite/tasks' | ||
|
||
project_toplevel_dir = File.dirname(File.dirname(__FILE__)) | ||
Thermite::Tasks.new(cargo_project_path: project_toplevel_dir, | ||
ruby_project_path: project_toplevel_dir) | ||
|
||
task default: 'thermite:build' |
This file was deleted.
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
require 'test_helper' | ||
require 'ffi' | ||
require 'thermite/config' | ||
|
||
class FasterPathTest < Minitest::Test | ||
def test_it_build_linked_library | ||
assert File.exist? begin | ||
prefix = Gem.win_platform? ? "" : "lib" | ||
"#{File.expand_path("../target/release/", File.dirname(__FILE__))}/#{prefix}faster_path.#{FFI::Platform::LIBSUFFIX}" | ||
toplevel_dir = File.dirname(File.dirname(__FILE__)) | ||
config = Thermite::Config.new(cargo_project_path: toplevel_dir, | ||
ruby_project_path: toplevel_dir) | ||
config.ruby_extension_path | ||
end | ||
end | ||
end |