Coder Social home page Coder Social logo

rustdoc_ng's Introduction

This is a prototype of rustdoc. It uses rustpkg, so clone the repo into a workspace (I use ~/.rustpkg, so it goes into ~/.rustpkg/src) and run rustpkg build rustdoc_ng. As a temporary hack, you need to move the executable (rustdoc_ng) into your Rust prefix (I use ../configure --prefix=~/.local, so I put it in ~/.local/bin).

Do not use unless you plan on helping develop it! It is incomplete and can't actually generate documentation yet.

The basic structure is that visit extracts relevant data from the Rust AST as given by libsyntax. clean then takes this simplified AST and stringifies it and resolves types and such. From there, pluggable "filters" can be run over this clean AST to remove or modify nodes, as well as augment the data included. As the last step, the cleaned AST is jsonified and returned. Plugins can return a name and @ToJson trait object, and their information will be included in the JSON output under the given name.

Copyright 2013 Corey Richardson

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. All files in the project carrying such notice may not be copied, modified, or distributed except according to those terms.

rustdoc_ng's People

Contributors

emberian avatar jedestep 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.