forked from isosphere/yew-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
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
29 changed files
with
754 additions
and
41 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 |
---|---|---|
@@ -1,38 +1,8 @@ | ||
[package] | ||
name = "yew-bootstrap" | ||
version = "0.5.4" | ||
authors = ["Matthew Scheffel <[email protected]>", "Foorack <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
readme = "README.md" | ||
keywords = ["yew", "bootstrap", "web"] | ||
categories = ["gui", "web-programming"] | ||
description = "Components for easier using Bootstrap with Yew" | ||
repository = "https://github.com/foorack/yew-bootstrap/" | ||
|
||
[[bin]] | ||
name = "yew-bootstrap-example" | ||
path = "src/example.rs" | ||
|
||
[lib] | ||
# You should include "rlib" (the default crate type) otherwise your crate can't be used as a Rust library | ||
# which, among other things, breaks unit testing | ||
crate-type = ["rlib", "cdylib"] | ||
name = "yew_bootstrap" | ||
|
||
[dependencies] | ||
yew = { version = "0.20", features = ["csr"] } | ||
log = "0.4" | ||
#console_log = { version = "0.2", features = ["color"] } | ||
|
||
[profile.release] | ||
# less code to include into binary | ||
panic = 'abort' | ||
# optimization over all codebase ( better optimization, slower build ) | ||
codegen-units = 1 | ||
# optimization for size ( more aggressive ) | ||
opt-level = 'z' | ||
# optimization for size | ||
# opt-level = 's' | ||
# link time optimization using using whole-program analysis | ||
lto = true | ||
[workspace] | ||
members = [ | ||
"packages/*" | ||
] | ||
exclude = [ | ||
"examples/*", | ||
] | ||
resolver = "2" |
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,15 @@ | ||
[workspace] | ||
members = [ | ||
"*", | ||
] | ||
exclude = [ | ||
"target", | ||
".cargo" | ||
] | ||
resolver = "2" | ||
|
||
[profile.release] | ||
lto = true | ||
codegen-units = 1 | ||
panic = "abort" | ||
opt-level = "z" |
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,20 @@ | ||
# Yew Bootstrap Examples | ||
|
||
## How to run | ||
|
||
The examples are built with [trunk](https://github.com/thedodd/trunk) which you can install with the following command: | ||
|
||
```bash | ||
cargo install --locked trunk | ||
``` | ||
|
||
Running an example is as easy as running a single command in the appropriate directory: | ||
|
||
```bash | ||
# move into the directory of the example you want to run | ||
# In this case it's the todomvc example | ||
cd examples/basics | ||
|
||
# build and serve the example | ||
trunk serve --release | ||
``` |
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,10 @@ | ||
[package] | ||
name = "basics" | ||
version = "0.1.0" | ||
authors = ["Matthew Scheffel <[email protected]>", "Foorack <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
||
[dependencies] | ||
yew = { version = "0.20", features = ["csr"] } | ||
yew-bootstrap = { path = "../../packages/yew-bootstrap" } |
Oops, something went wrong.