elvis-shared

Crates.ioelvis-shared
lib.rselvis-shared
version0.1.1
sourcesrc
created_at2020-07-04 19:41:48.025019
updated_at2020-07-05 22:03:04.698103
descriptionEvlis shared library
homepagehttps://github.com/clearloop/elvis
repositoryhttps://github.com/clearloop/elvis
max_upload_size
id261402
size16,969
(clearloop)

documentation

https://docs.rs/elvis-shared

README

  • Preparing to merge elvis.js and elvis-web into this one repo.
  • Rewriting the web client of rust.cc...

Calling Elvis ๐Ÿฆ€ ๐Ÿ•ธ ๐ŸŽธ ๐Ÿ“ก ๐Ÿš€ ๐Ÿช ๐Ÿ›ฐ

Rust crate doc downloads LICENSE

Is anybody home?

As we know, Elvis is a famous rock star, both a famous rock song named Calling Elvis wrote by Dire Straits which inspired a unknown rock star writing down these chords.

For now, Elvis, the rock star will rise once again, beyond the internet โ€”โ€” truely your wasm web library, ๐Ÿฆ€ + ๐Ÿ•ธ => ๐Ÿ’–

The Evlis Book mainly talks about the usage of calling-elvis, if you want to use low-level api rusting the web, plz check out elvis' rust doc.

Goals ๐ŸŽฏ

Writing web pages in pure rust or javascript using wasm bindings, without jsx or any other complex syntax, of course, not writing html nor css either.

Roll up for the Magical Mystery Tour! ๐ŸŒˆ

๐Ÿง™โ€โ™‚๏ธ ๐Ÿคนโ€โ™‚๏ธ Here we go! Roll up, roll up for the mystery tour, the magical mystery tour is waiting to take you away! Hoping to take you away! Coming to take you away! Dying to take you away, take you today! ๐Ÿ›ธ

๐ŸŽป Let me take you down, cause I'm going to,

Rust

use elvis::widgets::{layouts::Center, Text, TextStyle},
use elvis_web::Widget;
use wasm_bindgen::prelude::*;

#[wasm_bindgen(start)]
pub fn run() {
    let mut center = Widget::new(Center {
        child: Text {
            text: "Pink is the Pig!".into(),
            style: TextStyle::default(),
        }
        .into(),
    });

    center.calling().unwrap();
}

Javascript

import { Colors, Elvis, Text } from "calling-elvis";

const Home = Text("Pink is the Pig!", {
  bold: true,
  italic: true,
  size: 10,
  color: Colors.PinkAccent(),
});

new Elvis({
  home: Home,
}).calling();

Strawberry Fields ๐Ÿง‘โ€๐Ÿš€

21st Century Schizoid Magic ๐Ÿฉ

Rust

$ cargo install epm
$ epm
epm 0.0.2

USAGE:
    epm <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    dev     Start develop server
    help    Prints this message or the help of the given subcommand(s)
    init    Create a new elvis package in an existing directory
    new     Create a new elvis package

$ epm new my-awesome-project
$ cd my-awesome-project && epm dev

Javascript

$ yarn create elvis-app
โœ” What is your project named? โ€ฆ my-awesome-app
[ info ] Generating elvis files ...
[ wait ] Installing elvis dependencies ...
[ done ] Let's Roll up for the Magical Mystery Tour!

   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚                                                             โ”‚
   โ”‚   Success! Created my-awesome-app at:                       โ”‚
   โ”‚                                                             โ”‚
   โ”‚     /path/to/my-awesome-app                                 โ”‚
   โ”‚                                                             โ”‚
   โ”‚   Inside that directory, you can run several commands:      โ”‚
   โ”‚                                                             โ”‚
   โ”‚     - yarn dev:    Starts the development server.           โ”‚
   โ”‚     - yarn docs:   Open The Elvis Book.                     โ”‚
   โ”‚     - yarn build:  Builds my-awesome-app for production.    โ”‚
   โ”‚     - yarn start:  Runs my-awesome-app production mode.     โ”‚
   โ”‚                                                             โ”‚
   โ”‚   We suggest that you begin by typing:                      โ”‚
   โ”‚                                                             โ”‚
   โ”‚     - cd my-awesome-app                                     โ”‚
   โ”‚     - yarn dev                                              โ”‚
   โ”‚                                                             โ”‚
   โ”‚                                                             โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

LICENSE

Heartbreak Hotel.

Commit count: 121

cargo fmt