This repository has been archived by the owner on Nov 14, 2021. It is now read-only.
forked from dobkeratops/rustfind
-
Notifications
You must be signed in to change notification settings - Fork 0
html source code browser generator for rust,+search tool based on libsyntax.possible code for IDE component? Sample of HTML output:-
License
am0d/rust-find
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Uses rust libsyntax to find symbol definitions and generates HTML view of source with links finds struct-defs, functions, methods, fields writes ast node def info into '.rfx' files in plaintext. "make" to compile and run test program "make rustsrc" to generate HTML source for the main rust source tree at $(RUST_PATH)/src ./rustfind -h to display options ./rustfind cratename.rs sourcefile.rs:line:col ... compiles 'cratename.rs',then shows the location&definition referenced by sourcefile:line:col ./rustfind -j cratename.rs -- dump spans & node definition links as JSON ./rustfind -w cratename.rs -- creates HTML view of sourcecode roadmap [1] a commandline tool rustfind sourcefile.rs:LINE:COLUMN: --> definition.rs:LINE:col (to add add hoc navigation tools eg gedit external tools) [.1] CTAGS generation ?? [.1] interactive commandline tool (enter src/location/symbol-> dump location) [.2] possibly queries like "list all the functions that use this type, list all the impls' for this type.." [.3] links to Rustdoc ? [2] JSON / or other dump .. are there any formats IDE's read for their indexers? [3] options to dump/pretty print more context for the definitoon [4] an html hyperlinked source generator, like woboq? ... + popup type annotaions? [5] use components for IDE integration? Notes on sourcecode:- -------------------- -find_ast_node contains the node scanning -borrows code from rustdoc_ng -there might be a fair amoount of repition with the compiler internals eg ast node wrappers, this can be cleaned up.. -a lot here would factor out if ctxt had a node_id:span map Other:- ------- improved syntax highlighting rust.lang & required styles (for gtksourceview) included in scripts more ideas can ctags actually deal with overloaded symbols? could we write out an intermediate that editors can read for fast jump-to-def, with some dynamic context .. .rfx format: ------------ libname node_id source-file-name line col length kind [identifier] jdef nodeid libname def_node_id
About
html source code browser generator for rust,+search tool based on libsyntax.possible code for IDE component? Sample of HTML output:-
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Rust 81.3%
- C 9.1%
- Python 6.5%
- Shell 1.6%
- CSS 1.5%