Coder Social home page Coder Social logo

lightnet / rusthttpgunjs Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 94 KB

Prototype rust gun for server side. Client rust not worked on. Client browser work partly.

License: MIT License

HTML 5.92% Rust 73.91% JavaScript 20.17%
rust-lang rust-library javascript gunjs database

rusthttpgunjs's Introduction

rusthttpgunjs

License: MIT

Created By: Lightnet

Status:

  • Simple http and websocket (simple test)
  • Building Gunjs Database rust to gunrs library.
  • Learning rust language

Information:

Just a prototype to develop gun database rust server for gunjs database setup. Testing different type of server package and ease of use and understand the rust language code.

Porting from:

Packages:

  • actix-web = "1.0.0" ( main test area)

Setup | Build:

Note you need to install rust lanuguage.

  • actixwebgun (project / main)
cargo run -p actixhttpgun

The project folder main test actixwebgun. Since it easy to develop test file.

Features:

  • Server
    • Get
    • Put
    • Dup Checks
    • Hem Checks
  • Client
    • Send Test

Folders workspace:

  • Note this is move to httpwscrates branch.
Package Crates workspace Server Client Lib File Size Status gunrs json
actix-web 247 actixwebgun x o o 12,163 KB wip x x
rocket 83 rocketgun x o o 8,886 KB ??? o o
warp 198 warpgun x o o 8,179 KB ??? o o
hyper 132 hypergun x o o 5,836 KB ??? o o
tungstenite 79 tungstenitegun x o o 4,015 KB ??? o o
tokio 118 tokiogun x o o 3,948 KB ??? o o
rouille 114 rouillegun x o o 2,641 KB ??? o o
websocket 100 websocketgun x o o 2,191 KB ??? o o
ws 81 wsgun x o o 1,580 KB ??? o o
TcpListener 1 httpgunjs x o o 188 KB ??? o o
gunrs 1 gunrs o o x 427 KB wip o o
  • Those are just simple test file size.

Tests:

  • actix-web / gun (tested / wip)
  • warp / gun (partly tested)
  • hyper / gun (partly tested)
  • warp / gun (partly tested)
  • ws / gun (partly tested)
  • tokio / gun (partly tested)
  • tungstenite / gun (partly tested)
  • rouille / gun (partly tested)
  • http / gun (raw with websocket/ws package???)
  • gun (wip)

command line:

cargo run -p actixwebgun //server host web 
cargo run -p rouillegun //server host web 
cargo run -p httpgunjs //server host web simple page web
cargo run -p datagun //test gunrs

Window Linux subsystem:

Make sure you have firewall, antvirus and others disable else it conflict with install and setup.

 Windows 10
  * window app store
    * ubuntu linux os for bash
      * setup account for linux
 sudo apt-get update  //update packages
 sudo apt-get gcc     //install compiler
cargo run // default run app

cargo clean //clean up build app

cargo build // build app

rustup default nightly

//rustup default stable

workspace

//run app
cargo run -p actixhttpgun //not yet added gunrs

//run lib test check for error
cargo test -p gunrs

vscode:

Notes:

  • This is work space area folder.
  • File size projects may vary if http, websocket and other packages to support web.
  • gunrs (gunjs) work in progress.
  • Testing which build app is compact or friendly.
  • Files and Websocket has not build for gunjs yet.

rusthttpgunjs's People

Contributors

lightnet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.