Code Monkey home page Code Monkey logo

wwwfinger's Introduction

I'm learning Rust by implementing a WebFinger client.
http://webfinger.net/

From the WebFinger spec (http://tools.ietf.org/html/rfc7033):

    WebFinger is used to discover information about people or other
    entities on the Internet that are identified by a URI [6] using
    standard Hypertext Transfer Protocol (HTTP) [2] methods over a secure
    transport [12].  A WebFinger resource returns a JavaScript Object
    Notation (JSON) [5] object describing the entity that is queried.
    The JSON object is referred to as the JSON Resource Descriptor (JRD).


This is a command line utility designed to slurp down the JSON Resource 
Descriptor and put it on stdout. Not much to it right now. The code is pretty 
ugly, but it's been a fun learning exercise.

It's not anywhere close to being "done". The cli is halfway implemented.
I don't think I'm being very smart about pointers/boxes/ownership right now.
I hope to eventually provide some typesafety around the JRD as well.

There's some code to fallback to WebFist (http://webfist.org/) but it's not 
implemented (you'll get dead code warnings when you try to build). 

This relies on rust-http and rust-openssl libraries, using git submodules 
until a better dependency management toolset exists.

Here's the command I use to run it:
    ./build.sh && target/wwwfinger acct:[email protected]

You have to build the dependencies separatly. I'll write a Makefile
eventually.

Okay, have fun.

wwwfinger's People

Contributors

mwunsch 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.