Skip to content

Commit e7dce90

Browse files
committed
Fix an issue with overlapping short options.
1 parent 31f2251 commit e7dce90

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
os: [ubuntu-18.04, macos-latest, windows-latest]
10+
os: [ubuntu-latest, macos-latest, windows-latest]
1111
steps:
1212
- uses: actions/checkout@v2
1313
- uses: actions-rs/toolchain@v1

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ changelog
66
## 0.1.2
77
### changed
88
- Swap our `grass` for `sass-rs`.
9+
- Compress SASS/SCSS output when building in `--release` mode.
910

1011
## 0.1.1
1112
### fixed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<h1 align="center">trunk</h1>
22
<div align="center">
3+
4+
[![Build Status](https://github.com/thedodd/trunk/workflows/ci/badge.svg?branch=master)](https://github.com/thedodd/trunk/actions)
5+
[![Crates.io](https://img.shields.io/crates/v/trunk.svg)](https://crates.io/crates/trunk)
6+
[![License](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue)](LICENSE)
7+
![Crates.io](https://img.shields.io/crates/d/trunk.svg)
8+
![Crates.io](https://img.shields.io/crates/dv/trunk.svg)
9+
310
<strong>
411
Build, bundle & ship your Rust WASM application to the web.
512
</strong>
@@ -10,12 +17,6 @@
1017
</div>
1118
<br/>
1219

13-
[![Build Status](https://github.com/thedodd/trunk/workflows/ci/badge.svg?branch=master)](https://github.com/thedodd/trunk/actions)
14-
[![Crates.io](https://img.shields.io/crates/v/trunk.svg)](https://crates.io/crates/trunk)
15-
[![License](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue)](LICENSE)
16-
![Crates.io](https://img.shields.io/crates/d/trunk.svg)
17-
![Crates.io](https://img.shields.io/crates/dv/trunk.svg)
18-
1920
Goals:
2021
- Leverage the wasm-bindgen ecosystem for all things related to building Rust WASM for the web.
2122
- Simple, zero-config bundling of WASM, JS loader & other assets (images, css, scss) via a source HTML file.
@@ -43,7 +44,7 @@ pub fn main() {
4344
}
4445
```
4546

46-
Trunk uses a source HTML file to drive all asset building and bundling. Trunk also ships with a [built-in SASS/SCSS compiler](https://github.com/connorskees/grass), so let's get started with the following example. Copy this HTML to your cargo project's `src` dir at `src/index.html`:
47+
Trunk uses a source HTML file to drive all asset building and bundling. Trunk also ships with a [built-in SASS/SCSS compiler](https://github.com/compass-rs/sass-rs), so let's get started with the following example. Copy this HTML to your cargo project's `src` dir at `src/index.html`:
4748

4849
```html
4950
<html>
@@ -88,7 +89,7 @@ Trunk leverages Rust's powerful concurrency primitives for maximum build speeds.
8889
Trunk is still a young project, and new asset types will be added as we move forward. Keep an eye on [trunk#3](https://github.com/thedodd/trunk/issues/3) for more information on planned asset types, implementation status, and please contribute to the discussion if you think something is missing.
8990

9091
Currently supported assets:
91-
-`sass`: Trunk ships with a [built-in sass/scss compiler](https://github.com/connorskees/grass). Just link to your sass files from your source HTML, and Trunk will handle the rest. This content is hashed for cache control.
92+
-`sass`: Trunk ships with a [built-in sass/scss compiler](https://github.com/compass-rs/sass-rs). Just link to your sass files from your source HTML, and Trunk will handle the rest. This content is hashed for cache control.
9293
-`css`: Trunk will copy linked css files found in the source HTML without content modification. This content is hashed for cache control.
9394
- In the future, Trunk will resolve local `@imports`, will handle minification (see [trunk#7](https://github.com/thedodd/trunk/issues/3)), and we may even look into a pattern where any CSS found in the source tree will be bundled, which would enable a nice zero-config "component styles" pattern. See [trunk#3](https://github.com/thedodd/trunk/issues/3) for more details.
9495
-`icon`: Trunk will automatically copy referenced icons to the `dist` dir. This content is hashed for cache control.

src/cmd/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct Build {
2121
#[structopt(short, long, default_value="dist", parse(from_os_str))]
2222
dist: PathBuf,
2323
/// The public URL from which assets are to be served.
24-
#[structopt(short, long, default_value="/", parse(from_str=parse_public_url))]
24+
#[structopt(long, default_value="/", parse(from_str=parse_public_url))]
2525
public_url: String,
2626
}
2727

src/cmd/serve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub struct Serve {
2929
#[structopt(short, long, default_value="dist", parse(from_os_str))]
3030
dist: PathBuf,
3131
/// The public URL from which assets are to be served.
32-
#[structopt(short, long, default_value="/", parse(from_str=parse_public_url))]
32+
#[structopt(long, default_value="/", parse(from_str=parse_public_url))]
3333
public_url: String,
3434
/// Additional paths to ignore.
3535
#[structopt(short, long, parse(from_os_str))]

src/cmd/watch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct Watch {
2121
#[structopt(short, long, default_value="dist", parse(from_os_str))]
2222
dist: PathBuf,
2323
/// The public URL from which assets are to be served.
24-
#[structopt(short, long, default_value="/", parse(from_str=parse_public_url))]
24+
#[structopt(long, default_value="/", parse(from_str=parse_public_url))]
2525
public_url: String,
2626
/// Additional paths to ignore.
2727
#[structopt(short, long, parse(from_os_str))]

0 commit comments

Comments
 (0)