-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
460 additions
and
0 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
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,13 @@ | ||
interface ruby { | ||
/// Returns the path to the currently active Ruby binary. | ||
ruby-binary-path: func() -> result<string, string>; | ||
|
||
/// Returns the latest version of the given Ruby gem. | ||
gems-latest-version: func(gem-name: string) -> result<string, string>; | ||
|
||
/// Returns the installed version of the given Ruby gem, if it exists. | ||
gems-installed-version: func(gem-name: string) -> result<option<string>, string>; | ||
|
||
/// Installs the specified Ruby gem. | ||
gems-install-gem: func(gem-name: string, version: string, binaries: list<string>) -> result<_, string>; | ||
} |
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
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
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,42 @@ | ||
[package] | ||
name = "ruby_runtime" | ||
version = "0.1.0" | ||
publish.workspace = true | ||
edition.workspace = true | ||
license = "GPL-3.0-or-later" | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[lib] | ||
path = "src/ruby_runtime.rs" | ||
doctest = false | ||
|
||
[features] | ||
test-support = ["tempfile"] | ||
|
||
[dependencies] | ||
anyhow.workspace = true | ||
async-compression.workspace = true | ||
async-watch.workspace = true | ||
async-tar.workspace = true | ||
async-trait.workspace = true | ||
async_zip.workspace = true | ||
futures.workspace = true | ||
http_client.workspace = true | ||
log.workspace = true | ||
paths.workspace = true | ||
semver.workspace = true | ||
serde.workspace = true | ||
serde_json.workspace = true | ||
smol.workspace = true | ||
tempfile = { workspace = true, optional = true } | ||
util.workspace = true | ||
walkdir = "2.5.0" | ||
which.workspace = true | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
async-std = { version = "1.12.0", features = ["unstable"] } | ||
|
||
[dev-dependencies] | ||
tempfile.workspace = true |
Oops, something went wrong.