rolldown 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +59 -0
- data/lib/rolldown/version.rb +5 -0
- data/lib/rolldown.rb +6 -0
- data/rolldown.gemspec +41 -0
- data/sig/rolldown.rbs +3 -0
- metadata +50 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 28f0f4512b0121ad746f54c1df63f3e4f94a2f96136f347dc9ceebe9f0ede04d
|
|
4
|
+
data.tar.gz: 9e437fefb81181be710087a7f9432eccd558fcc2b1145030a58612b03130147c
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 4c7a4aa427585fd0674547a2c91993c8023c5292b26ca1d19794f1529ccaf7b45c6b09d5d7046f64271a988fcc775d2fcc5b0f9901a241ad0b16f41c17f33d26
|
|
7
|
+
data.tar.gz: 10cfc4fc8876b6e6ea42edfbf8325cddcaf44443835517c5ff2d329e3d799eff65517d5b3fc2d47790e7711ac1c970effe5c402bdf5b25e858285010666bd964
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Marco Roth
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<h2 align="center">Rolldown for Ruby</h2>
|
|
2
|
+
|
|
3
|
+
<h4 align="center">Blazing Fast Rust-based bundler for JavaScript.</h4>
|
|
4
|
+
|
|
5
|
+
<div align="center">Ruby bindings for <a href="https://rolldown.rs">Rolldown</a>, the Rust-based bundler for JavaScript.</div><br/>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://rubygems.org/gems/rolldown"><img alt="Gem Version" src="https://img.shields.io/gem/v/rolldown"></a>
|
|
9
|
+
<a href="https://rolldown.rs"><img alt="Documentation" src="https://img.shields.io/badge/rolldown.rs-documentation-green"></a>
|
|
10
|
+
<a href="https://github.com/marcoroth/rolldown-ruby/blob/main/LICENSE.txt"><img alt="License" src="https://img.shields.io/github/license/marcoroth/rolldown-ruby"></a>
|
|
11
|
+
<a href="https://github.com/marcoroth/rolldown-ruby/issues"><img alt="Issues" src="https://img.shields.io/github/issues/marcoroth/rolldown-ruby"></a>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<br/>
|
|
15
|
+
|
|
16
|
+
### What is Rolldown for Ruby?
|
|
17
|
+
|
|
18
|
+
Ruby bindings for [Rolldown](https://rolldown.rs), the Rust-based bundler for JavaScript. Bundle JavaScript from Ruby, without the need for a JavaScript runtime.
|
|
19
|
+
|
|
20
|
+
Everything here is Rolldown doing the work. For what the options mean and what it can do, [rolldown.rs](https://rolldown.rs) is the reference.
|
|
21
|
+
|
|
22
|
+
### Installation
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
bundle add rolldown
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Anywhere a precompiled gem is not published, the gem builds from source and needs the [Rust toolchain](https://rustup.rs) at 1.96 or newer.
|
|
29
|
+
|
|
30
|
+
### Usage
|
|
31
|
+
|
|
32
|
+
TODO
|
|
33
|
+
|
|
34
|
+
### Development
|
|
35
|
+
|
|
36
|
+
The gem is a C extension over a Rust crate. `rust/` builds a static library and generates the C header with [cbindgen](https://github.com/mozilla/cbindgen), `ext/rolldown/` wraps it, and `lib/` is the Ruby API over that.
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
bin/setup
|
|
40
|
+
bundle exec rake
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
`sig/` is generated from the `#:` annotations next to the code. Regenerate it with `rake rbs` after changing a signature, and CI checks that it matches.
|
|
44
|
+
|
|
45
|
+
### Acknowledgements
|
|
46
|
+
|
|
47
|
+
[Rolldown](https://rolldown.rs) is maintained at [rolldown/rolldown](https://github.com/rolldown/rolldown) and is part of [VoidZero](https://voidzero.dev)'s toolchain for JavaScript. This gem only calls into it. Thank you for building these tools!
|
|
48
|
+
|
|
49
|
+
### Contributing
|
|
50
|
+
|
|
51
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/marcoroth/rolldown-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/marcoroth/rolldown-ruby/blob/main/CODE_OF_CONDUCT.md).
|
|
52
|
+
|
|
53
|
+
Issues with parsing, transforming or minifying itself belong [upstream](https://github.com/rolldown/rolldown/issues), since this gem does none of that. Issues with the Ruby API, the build, or the bindings belong here.
|
|
54
|
+
|
|
55
|
+
### License
|
|
56
|
+
|
|
57
|
+
The Ruby, C, and Rust code in this gem is available under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
58
|
+
|
|
59
|
+
It builds against [Rolldown](https://github.com/rolldown/rolldown), which is MIT licensed and carries some MIT code of its own.
|
data/lib/rolldown.rb
ADDED
data/rolldown.gemspec
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lib/rolldown/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "rolldown"
|
|
7
|
+
spec.version = Rolldown::VERSION
|
|
8
|
+
spec.authors = ["Marco Roth"]
|
|
9
|
+
spec.email = ["marco.roth@intergga.ch"]
|
|
10
|
+
|
|
11
|
+
spec.summary = "Blazing Fast Rust-based bundler for JavaScript"
|
|
12
|
+
spec.description = "Ruby bindings for Rolldown, the Rust-based bundler for JavaScript."
|
|
13
|
+
spec.homepage = "https://github.com/marcoroth/rolldown-ruby"
|
|
14
|
+
spec.licenses = ["MIT"]
|
|
15
|
+
spec.required_ruby_version = ">= 3.2.0"
|
|
16
|
+
spec.require_paths = ["lib"]
|
|
17
|
+
|
|
18
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
19
|
+
spec.metadata["source_code_uri"] = "https://github.com/marcoroth/rolldown-ruby"
|
|
20
|
+
spec.metadata["changelog_uri"] = "https://github.com/marcoroth/rolldown-ruby/releases"
|
|
21
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
22
|
+
|
|
23
|
+
spec.files = Dir[
|
|
24
|
+
"rolldown.gemspec",
|
|
25
|
+
"LICENSE.txt",
|
|
26
|
+
"README.md",
|
|
27
|
+
"lib/**/*.rb",
|
|
28
|
+
"sig/**/*.rbs",
|
|
29
|
+
# "ext/rolldown/extconf.rb",
|
|
30
|
+
# "ext/rolldown/rolldown.c",
|
|
31
|
+
# "ext/rolldown/include/**/*.h",
|
|
32
|
+
# "rust/Cargo.toml",
|
|
33
|
+
# "rust/Cargo.lock",
|
|
34
|
+
# "rust/build.rs",
|
|
35
|
+
# "rust/cbindgen.toml",
|
|
36
|
+
# "rust/rustfmt.toml",
|
|
37
|
+
# "rust/src/**/*.rs"
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
# spec.extensions = ["ext/rolldown/extconf.rb"]
|
|
41
|
+
end
|
data/sig/rolldown.rbs
ADDED
metadata
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rolldown
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Marco Roth
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: Ruby bindings for Rolldown, the Rust-based bundler for JavaScript.
|
|
13
|
+
email:
|
|
14
|
+
- marco.roth@intergga.ch
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- LICENSE.txt
|
|
20
|
+
- README.md
|
|
21
|
+
- lib/rolldown.rb
|
|
22
|
+
- lib/rolldown/version.rb
|
|
23
|
+
- rolldown.gemspec
|
|
24
|
+
- sig/rolldown.rbs
|
|
25
|
+
homepage: https://github.com/marcoroth/rolldown-ruby
|
|
26
|
+
licenses:
|
|
27
|
+
- MIT
|
|
28
|
+
metadata:
|
|
29
|
+
homepage_uri: https://github.com/marcoroth/rolldown-ruby
|
|
30
|
+
source_code_uri: https://github.com/marcoroth/rolldown-ruby
|
|
31
|
+
changelog_uri: https://github.com/marcoroth/rolldown-ruby/releases
|
|
32
|
+
rubygems_mfa_required: 'true'
|
|
33
|
+
rdoc_options: []
|
|
34
|
+
require_paths:
|
|
35
|
+
- lib
|
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 3.2.0
|
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
|
+
requirements:
|
|
43
|
+
- - ">="
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
requirements: []
|
|
47
|
+
rubygems_version: 4.0.16
|
|
48
|
+
specification_version: 4
|
|
49
|
+
summary: Blazing Fast Rust-based bundler for JavaScript
|
|
50
|
+
test_files: []
|