Super tiny pastebin webapp written in rust.

Overview

MicroBin

Screenshot

MicroBin is a super tiny and simple self hosted pastebin app written in Rust. The executable is around 6MB and it uses 2MB memory (plus your pastas).

Installation

Simply clone the repository, build it with cargo build --release and run the microbin executable in the created target/release/ directory. It will start on port 8080.

To install it as a service on your Linux machine, create a file called /etc/systemd/system/microbin.service, paste this into it with the value of ExecStart replaced with the actual path to microbin on your machine.

[Unit]
Description=MicroBin
After=network.target
[Service]
Type=simple
Restart=always
ExecStart=/home/pi/microbin/target/release/microbin
[Install]
WantedBy=multi-user.target

Then start the service with systemctl start microbin and enable it on boot with systemctl enable microbin.

Create Pasta with cURL

Simple text Pasta: curl -d "expiration=10min&content=This is a test pasta" -X POST https://microbin.myserver.com/create

Simple text Pasta: curl -d "expiration=10min&content=$( < mypastafile.txt )" -X POST https://microbin.myserver.com/create

Available expiration options:

  • 1min
  • 10min
  • 1hour
  • 24hour
  • 1week
  • never

Use cURL to read the pasta: curl https://microbin.myserver.com/rawpasta/fish-pony-crow

or to download the pasta: curl https://microbin.myserver.com/rawpasta/fish-pony-crow > output.txt

Features

  • No CSS or JS, super lightweight and simple
  • Animal names instead of random numbers for pasta identifiers
  • Automatically expiring pastas
  • Never expiring pastas
  • Listing and manually removing pastas

Needed improvements

  • Persisting pastas on disk (currently they are lost on restart)
  • Removing pasta after N reads
  • File uploads
  • URL shortening
  • CLI tool
  • Configuration with command line arguments (ports, enable-disable pasta list, footer, etc)
Comments
  • /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found

    /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found

    Error message: microbin: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by microbin)

    This issue is happening after the latest code merge on July 25. Was never an issue before

    bug help wanted 
    opened by binuengoor 11
  • Being able to add Command Line Arguments as Environment Variables for docker version

    Being able to add Command Line Arguments as Environment Variables for docker version

    Hello That would be very great and super easy for everyone if you consider adding an option to be able to add Command Line Arguments as Environment Variables for docker version.

    opened by AuthorShin 5
  • Docker using MICOBIN_PUBLIC_PATH always results in 404

    Docker using MICOBIN_PUBLIC_PATH always results in 404

    Everything seems to be right, but all links result in a 404 for what I presume is the paste section of the page. My.server.net is a valid domain, just modified for posting publicly here.

    Browser outputs: https://imgur.com/a/xtiF6Rs

    HTML source in browser:

    <!DOCTYPE html>
    <html>
    <head>
    <title>MicroBin</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/svg+xml" href="https://my.server.net/microbin/static/favicon.svg">
    <link rel="stylesheet" href="https://my.server.net/microbin/static/water.css">
    </head>
    <body style="
        max-width: 800px;
            margin: auto;
            padding-left:0.5rem;
            padding-right:0.5rem;
            line-height: 1.5;
            font-size: 1.1em;
            ">
    <br>
    <b style="margin-right: 0.5rem">
    
    <img width=26 style="margin-bottom: -6px; margin-right: 0.5rem;" src="https://my.server.net/microbin/static/logo.png">
    MicroBin
    </b>
    <a href="https://my.server.net/microbin/" style="margin-right: 0.5rem; margin-left: 0.5rem">New
    </a>
    <a href="https://my.server.net/microbin/pastalist" style="margin-right: 0.5rem; margin-left: 0.5rem">List</a>
    <a href="https://my.server.net/microbin/info" style="margin-right: 0.5rem; margin-left: 0.5rem">Info</a>
    <hr>
    <br>
    <h2>404</h2>
    <b>Not Found</b>
    <br>
    <br>
    <a href="https://my.server.net/microbin/"> Go Home</a>
    <br>
    <br>
    <hr>
    <p style="font-size: smaller">
    <a href="https://microbin.eu">MicroBin</a> by Dániel Szabó and the FOSS Community.
    Let's keep the Web <b>compact</b>, <b>accessible</b> and <b>humane</b>!
    </p>
    <script defer src="https://static.cloudflareinsights.com/beacon.min.js/vaafb692b2aea4879b33c060e79fe94621666317369993" integrity="sha512-0ahDYl866UMhKuYcW078ScMalXqtFJggm7TmlUtp0UlD4eQk0Ixfnm5ykXKvGJNFjLMoortdseTfsRT8oCfgGA==" data-cf-beacon='{"rayId":"7688a65829badb6e","version":"2022.11.0","r":1,"token":"a68b002d9558413dacf15687b65515ae","si":100}' crossorigin="anonymous"></script>
    </body>
    </html>
    

    docker-compose.yaml

    version: "3.7"
    
    services:
      microbin:
        container_name: microbin
        hostname: microbin
        image: danielszabo99/microbin
        restart: always
    
        environment:
          - TZ
          - MICROBIN_HIGHLIGHT_SYNTAX=true
          - MICROBIN_EDITABLE=true
          - MICROBIN_ENABLE_BURN_AFTER=true
          - MICROBIN_PRIVATE=true
          - MICROBIN_QR=true
          - MICROBIN_PUBLIC_PATH=https://my.server.net/microbin
    
        labels:
          - "traefik.enable=true"
    
        networks:
          - traefik
    
        volumes:
          - ${PROJECT_PATH}/microbin/volumes:/app/pasta_data
    
    opened by ddimick 5
  • [enhancement request]: show pasta name on the main page in addition to url

    [enhancement request]: show pasta name on the main page in addition to url

    Currently the newly created pasta name only shows up within the url. For people using the service on mobile devices, it might not be easy to view. Hence it would be good to add pasta name to the main page once its created.

    enhancement 
    opened by binuengoor 5
  • Orphaned pastas

    Orphaned pastas

    When the URL/identifier for a private, non-expiring, pasta is forgotten, the pasta may remain forever with nobody who can delete it except for some administrator or imaginary GC mechanism within microbin that has access to the underlying data files. This can result in endless garbage accumulation.

    For this problem, perhaps there can be an administrative tool (e.g. program) to list the URLs/identifiers for pastas that meet certain criteria, optionally deleting them. For example, someone could be interested in private pastas that have not been accessed in the past n days. Potentially problematic concurrent access to the underlying data files by microbin and this tool needs to be considered.

    Alternatively, there could be a switch to disallow non-expiring, private, pastas.

    bug discussion 
    opened by jchia 4
  • Docker volume not correct?

    Docker volume not correct?

    I just created a Docker container on my Synoloy NAS and used:

        volumes:
         - ./microbin-data:/usr/local/bin/pasta_data
    

    But after examining the container itself I noticed the folder should be: /app/pasta_data

    Or at least /usr/local/bin/pasta_data is empty for me and /app/pasta_data has the database.json file etc.

    documentation question 
    opened by Panja0 4
  • [Feature request] option to use random characters instead of animal names

    [Feature request] option to use random characters instead of animal names

    not a major issue, but for just sharing links (over copy/paste) I'd rather it be as short as possible, as the animal names can get pretty long for their relative low density of information

    enhancement good-first-issue 
    opened by Ember-ruby 4
  • [Feature Request] Add MicroBin to the Unraid Community Apps.

    [Feature Request] Add MicroBin to the Unraid Community Apps.

    My feature request is a very easy to install version of MicroBin on the Unraid Community Apps.

    I tried to do it myself but I have very little knowledge with Docker, Docker Hub or how to officially add an app to the Unraid CA:

    2022-08-15_11-50

    I clicked on ADD CONTAINER in the Unraid docker GUI and added the following: Name: microbin Repository: solarft/microbin

    I added a new port: WebUI: Container Port: 8080 Host Port: e.g. 7123

    I added a new path: Data Path: Container Path: /usr/local/bin/pasta_data Host Path: /mnt/user/appdata/microbin/data/

    As you can tell from the screenshot, basic functionality works and I can access, create and save new pasta in my local network.


    I don't know if solarft/microbin is the official MicroBin docker hub repository, there were about 4 different ones and I tried them until one worked.

    Also I have no idea how to pass command line arguments like --highlightsyntax. I tried many things but none of them worked.


    I've done what I can and failed, maybe someone else is able to fulfill this feature request.

    Thank you!

    misc 
    opened by moritz-john 4
  • URL Shortening does not work

    URL Shortening does not work

    If i short an URL by just simply pasting only the URL in my Pasta and opening it on a other device i just get the normal text and dont get redirected to the URL.

    enhancement question 
    opened by Y0ngg4n 4
  • (Feature) Self-destruction after set amount of views

    (Feature) Self-destruction after set amount of views

    I didn't see any information about it in the readme, i would like to have the option. that notes get self-destroyed after a amount of times it got opened

    enhancement good-first-issue 
    opened by luxus 3
  • feat: add site favicon

    feat: add site favicon

    Closes #62

    I whipped up a quick favicon.svg for the site based off what was existing. Let me know if you're looking for something different and I can swap it out!

    CleanShot 2022-09-30 at 21 53 14@2x
    opened by hay-kot 3
  • Added a few features

    Added a few features

    1. Ctrl+enter to submit form.
      • maybe is only for me. I used to press ctrl+enter to send email, submit forum posts, etc. Even for github support this keybind.
    2. Editable checkbox is checked by default.
      • maybe it's for me. I prefer the note is editable by default.
    3. on Pasta list page, the order is reversed, new added item appears on top.
      • It's more convenient/makes more sense to see latest item on top. I dig through the project and found the data is saved in json file, which is not naturally sortable. So I use jquery in the html side doing the sorting.
    opened by jacobhere 0
  • Line wrapping

    Line wrapping

    Since I set it up, I've been using Microbin for sending longform text back and forth with my friend, which it's worked great for aside from the fact that paragraphs render as a single line so you end up doing a looooot of horizontal scrolling when reading.

    I think there should be a checkbox when creating the pasta (next to the "Editable" checkbox if that's enabled) to match the author's intention with wrapping.

    I think there should also be a toggle on the pasta page for viewers to change their preference, but I understand that might get complicated with the "no-javascript" thing. Maybe with a query param in the URL that gets parsed server-side?

    Anyway, please let me know your thoughts.

    opened by reeseovine 0
  • default expiry of never selected in dropdown when passed as env var

    default expiry of never selected in dropdown when passed as env var

    • Extended the if statement to set a selected value for never. This resolves issue #127

    • Refactored to include the Never Expire inline with the other options in the Dropdown.

    Previous dropdown style: image

    After refactor: image

    opened by Tyfui90 0
  • MICROBIN_DEFAULT_EXPIRY=never does not update selected value in option Expiration Dropdown

    MICROBIN_DEFAULT_EXPIRY=never does not update selected value in option Expiration Dropdown

    When MICROBIN_DEFAULT_EXPIRY is set to never, the Expiration dropdown value does not take the never, instead defaulting to the first entry in the dropdown (1 minute) image

    reproduce with the microbin arguments: --default-expiry never -p 80

    opened by Tyfui90 0
  • server 502 error

    server 502 error

    A 502 error occurs when too many characters are entered. I use Nginx as a reverse proxy. image

    ========== LOG =======================

    2022-12-04T15:49:57 [INFO] - MicroBin starting on http://0.0.0.0:8080 2022-12-04T15:49:57 [INFO] - Starting 1 workers 2022-12-04T15:49:57 [INFO] - Actix runtime found; starting in Actix runtime 2022-12-04T15:49:57 [INFO] - 172.19.0.1 "GET /pasta/falcon-mole-wasp HTTP/1.1" 200 728 "https://past.cent.xxxxxx.xyz/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000519 2022-12-04T15:49:57 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/pasta/falcon-mole-wasp" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000100 2022-12-04T15:49:57 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "https://past.cent.xxxxxx.xyz/pasta/falcon-mole-wasp" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000060 2022-12-04T15:50:07 [INFO] - 172.19.0.1 "GET /pastalist HTTP/1.1" 200 2698 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000376 2022-12-04T15:50:07 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/pastalist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000069 2022-12-04T15:50:10 [INFO] - 172.19.0.1 "GET /pasta/b67WOd HTTP/1.1" 200 3466 "https://past.cent.xxxxxx.xyz/pastalist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.003249 2022-12-04T15:50:10 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/pasta/b67WOd" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000060 2022-12-04T15:50:12 [INFO] - 172.19.0.1 "GET /remove/b67WOd HTTP/1.1" 302 0 "https://past.cent.xxxxxx.xyz/pasta/b67WOd" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000051 2022-12-04T15:50:12 [INFO] - 172.19.0.1 "GET /pastalist HTTP/1.1" 200 1175 "https://past.cent.xxxxxx.xyz/pasta/b67WOd" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000199 2022-12-04T15:50:12 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/pastalist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000061 2022-12-04T15:50:14 [INFO] - 172.19.0.1 "GET / HTTP/1.1" 200 6137 "https://past.cent.xxxxxx.xyz/pastalist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000061 2022-12-04T15:50:14 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000068 2022-12-04T15:50:25 [INFO] - 172.19.0.1 "POST /upload HTTP/1.1" 302 0 "https://past.cent.xxxxxx.xyz/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000274 2022-12-04T15:50:25 [INFO] - 172.19.0.1 "GET /pasta/bDPEKb HTTP/1.1" 200 4356 "https://past.cent.xxxxxx.xyz/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.002891 2022-12-04T15:50:25 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/pasta/bDPEKb" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000058 2022-12-04T15:51:38 [INFO] - 172.19.0.1 "GET /remove/bDPEKb HTTP/1.1" 302 0 "https://past.cent.xxxxxx.xyz/pasta/bDPEKb" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000052 2022-12-04T15:51:38 [INFO] - 172.19.0.1 "GET /pastalist HTTP/1.1" 200 1175 "https://past.cent.xxxxxx.xyz/pasta/bDPEKb" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000206 2022-12-04T15:51:38 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/pastalist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000057 2022-12-04T15:51:41 [INFO] - 172.19.0.1 "GET /pastalist HTTP/1.1" 200 1175 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000309 2022-12-04T15:51:41 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/pastalist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000058 2022-12-04T15:51:41 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "https://past.cent.xxxxxx.xyz/pastalist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000050 2022-12-04T15:53:43 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000060 2022-12-04T16:00:13 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000059 2022-12-04T16:12:29 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/pasta/bYDVOa" "Mozilla/5.0 (Linux; Android 12; SM-G9810) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36" 0.000074 2022-12-04T16:12:35 [INFO] - 172.19.0.1 "GET /pasta/bYDVOa HTTP/1.1" 200 728 "-" "Mozilla/5.0 (Linux; Android 12; SM-G9810) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36" 0.000210 2022-12-04T16:12:35 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/pasta/bYDVOa" "Mozilla/5.0 (Linux; Android 12; SM-G9810) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36" 0.000055 2022-12-04T16:12:35 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "https://past.cent.xxxxxx.xyz/pasta/bYDVOa" "Mozilla/5.0 (Linux; Android 12; SM-G9810) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36" 0.000049 2022-12-04T16:44:08 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000062 2022-12-04T16:47:07 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000055 2022-12-04T16:50:16 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000050 2022-12-04T16:56:16 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000059 2022-12-04T17:09:35 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000134 2022-12-04T17:10:16 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000050 2022-12-04T17:17:22 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000059 2022-12-04T17:55:07 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000134 2022-12-04T17:56:59 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000050 2022-12-04T17:59:03 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000051 2022-12-04T18:22:07 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000138 2022-12-04T18:22:10 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000051 2022-12-04T18:25:14 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000057 2022-12-04T19:03:09 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000133 2022-12-04T19:03:22 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000054 2022-12-04T19:03:35 [INFO] - 172.19.0.1 "GET /pastalist HTTP/1.1" 200 1175 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000212 2022-12-04T19:03:35 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/pastalist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000058 2022-12-04T19:06:28 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000051 2022-12-04T19:09:20 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000051 2022-12-04T19:11:06 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000052 2022-12-04T19:12:33 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000050 2022-12-04T19:34:03 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000060 2022-12-04T19:40:14 [INFO] - SIGTERM received; starting graceful shutdown 2022-12-04T19:40:14 [INFO] - Accept thread stopped 2022-12-04T19:40:14 [INFO] - Shutting down idle worker 2022-12-04T19:59:07 [INFO] - MicroBin starting on http://0.0.0.0:8080 2022-12-04T19:59:07 [INFO] - Starting 1 workers 2022-12-04T19:59:07 [INFO] - Actix runtime found; starting in Actix runtime 2022-12-04T19:59:50 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000181 2022-12-04T20:07:29 [INFO] - SIGTERM received; starting graceful shutdown 2022-12-04T20:07:29 [INFO] - Accept thread stopped 2022-12-04T20:07:29 [INFO] - Shutting down idle worker 2022-12-04T20:11:21 [INFO] - MicroBin starting on http://0.0.0.0:8080 2022-12-04T20:11:22 [INFO] - Starting 1 workers 2022-12-04T20:11:22 [INFO] - Actix runtime found; starting in Actix runtime 2022-12-04T20:12:14 [INFO] - SIGTERM received; starting graceful shutdown 2022-12-04T20:12:14 [INFO] - Accept thread stopped 2022-12-04T20:12:14 [INFO] - Shutting down idle worker 2022-12-04T20:13:44 [INFO] - MicroBin starting on http://0.0.0.0:8080 2022-12-04T20:13:44 [INFO] - Starting 1 workers 2022-12-04T20:13:44 [INFO] - Actix runtime found; starting in Actix runtime 2022-12-04T20:20:25 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000284 2022-12-04T20:20:26 [INFO] - 172.19.0.1 "GET /pastalist HTTP/1.1" 200 1175 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000418 2022-12-04T20:20:26 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/pastalist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000204 2022-12-04T20:20:28 [INFO] - 172.19.0.1 "GET / HTTP/1.1" 200 6137 "https://past.cent.xxxxxx.xyz/pastalist" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000132 2022-12-04T20:20:28 [INFO] - 172.19.0.1 "GET /static/water.css HTTP/1.1" 200 22669 "https://past.cent.xxxxxx.xyz/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000136 thread 'actix-rt|system:0|arbiter:0' panicked at 'called Result::unwrap() on an Err value: Utf8Error { valid_up_to: 219615, error_len: None }', src/endpoints/create.rs:123:66 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace 2022-12-04T20:21:52 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000087 2022-12-04T20:23:36 [INFO] - 172.19.0.1 "GET /static/favicon.svg HTTP/1.1" 200 2095 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" 0.000086 thread 'actix-rt|system:0|arbiter:0' panicked at 'called Result::unwrap() on an Err value: PoisonError { .. }', src/endpoints/create.rs:40:41

    opened by luiguangguan 1
Releases(v1.2.0)
Owner
Dániel Szabó
shoot me a message! [email protected]
Dániel Szabó
🚀Memory safe, blazing fast, configurable, minimal hello world written in rust(🚀) in a few lines of code with few(1092🚀) dependencies🚀

?? hello-world.rs ?? ?? Memory safe, blazing fast, minimal and configurable hello world project written in the rust( ?? ) programming language ?? ?? W

mTvare 2.7k Jan 7, 2023
simple static file server written in Rust based on axum framework

static-server simple static file server written in Rust based on axum framework I'm learning Rust and axum. My thought is simple. axum has a static-fi

null 27 Jan 1, 2023
Helpers to build Perl extensions written in Rust.

Module-Install-Rust Helpers to build Perl extensions written in Rust. INSTALLATION To install this module, run the following commands: perl Makef

Vickenty Fesunov 1 Oct 13, 2019
A web application completely written in Rust. 🌍

WebApp.rs A web application completely written in Rust Target of this project is to write a complete web application including backend and frontend wi

Sascha Grunert 2.1k Dec 30, 2022
VRS is a simple, minimal, free and open source static web server written in Rust

VRS is a simple, minimal, free and open source static web server written in Rust which uses absolutely no dependencies and revolves around Rust's std::net built-in utility.

null 36 Nov 8, 2022
handle some lichess.org/tournament load with rust, while learning rust

lila-http Take some of the HTTP load away from lila. WIP! Arena tournaments Clients connected to a tournament page request new data about the tourname

Thibault Duplessis 22 Jan 2, 2023
Simple http server in Rust (Windows/Mac/Linux)

How it looks like? Screenshot Command Line Arguments Simple HTTP(s) Server 0.6.1 USAGE: simple-http-server [FLAGS] [OPTIONS] [--] [root] FLAGS:

LinFeng Qian 788 Dec 28, 2022
Rust / Hasura / GraphQL

Rust + Hasura This is an example of a Rust server that functions as a remote schema for Hasura. It demonstrates: user login + signup JWT authorization

Rónán 130 Dec 26, 2022
Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

Actix Web Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust Features Supports HTTP/1.x and HTTP/2 Streaming and pipelining

Actix 16.3k Jan 8, 2023
An HTTP library for Rust

hyper A fast and correct HTTP implementation for Rust. HTTP/1 and HTTP/2 Asynchronous design Leading in performance Tested and correct Extensive produ

null 11k Jan 7, 2023
JSON Web Token implementation in Rust.

Frank JWT Implementation of JSON Web Tokens in Rust. Algorithms and features supported HS256 HS384 HS512 RS256 RS384 RS512 ES256 ES384 ES512 Sign Veri

Alex Maslakov 246 Dec 27, 2022
Rust templating with Handlebars

handlebars-rust Handlebars templating language implemented in Rust and for Rust. Handlebars-rust is the template engine that renders the official Rust

Ning Sun 923 Dec 29, 2022
An Extensible, Concurrent Web Framework for Rust

Iron Extensible, Concurrency Focused Web Development in Rust. Response Timer Example Note: This example works with the current iron code in this repos

null 6.1k Dec 27, 2022
GraphQL server library for Rust

GraphQL server library for Rust GraphQL is a data query language developed by Facebook intended to serve mobile and web application frontends. Juniper

GraphQL Rust 4.9k Jan 5, 2023
An expressjs inspired web framework for Rust

nickel.rs nickel.rs is a simple and lightweight foundation for web applications written in Rust. Its API is inspired by the popular express framework

null 3k Jan 3, 2023
[OUTDATED] A light HTTP framework for Rust

Rustful A light HTTP framework for Rust, with REST-like features. The main purpose of Rustful is to create a simple, modular and non-intrusive foundat

Erik Hedvall 873 Nov 12, 2022
A web framework for Rust.

Rocket Rocket is an async web framework for Rust with a focus on usability, security, extensibility, and speed. #[macro_use] extern crate rocket; #[g

Sergio Benitez 19.5k Jan 8, 2023
REST-like API micro-framework for Rust. Works with Iron.

Table of Contents What is Rustless? Usage warning Basic Usage Complex example Mounting Parameters validation and coercion Use JSON Schema Query string

Rustless 610 Jan 4, 2023
A lightweight web framework built on hyper, implemented in Rust language.

Sapper Sapper, a lightweight web framework, written in Rust. Sapper focuses on ergonomic usage and rapid development. It can work with stable Rust. Sa

Daogang Tang 622 Oct 27, 2022