Giter VIP home page Giter VIP logo

cargo-src's People

Contributors

alexpikalov avatar dependabot-support avatar dependabot[bot] avatar dpmkl avatar durka avatar edg2s avatar eira-fransham avatar erichdongubler avatar goyox86 avatar jangnh avatar joelgallant avatar jxs avatar kamalmarhubi avatar liigo avatar nkanderson avatar nrc avatar oli-obk avatar pickfire avatar sbeckeriv avatar vramana avatar wezm avatar zahratee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cargo-src's Issues

rustfmt integration

format a file, show the results and/or a diff, then save to file on user action

suggestions

needs support in rustc (these are supported on the console, but not in JSON errors)

remote builds

Client and server on different machines. Need to consider security and latency issues a lot more.

jump to defintion

on click in code view, maybe in code snippets too

use save-analysis data

routing

when we change 'page' we should set the URL to something meaningful and if a URL is entered cold, then we should be able to load the right page. Also when we restart the browser (requires catching the onload even, I believe).

refresh to rebuild

not 100% sure on this control flow, but hopefully it will be convenient.

handle ICEs

We'll need to parse the textual output since we won't get nice json. There's a lot we can do here - links to file an issue or contributing.md, expand to see the dumped logfile which we plan to have, and so forth.

macro debugging stuff

long term: expand/unexpand macros + other tools

short term: explorable expansion traces (needs rustc integration)

scroll position on page transition

if you go to a source code page, then back to build, the page is scrolled down.

Solution is to save the scroll position in the page state, I think.

license

and copyright boilerplate

source code should be copy-able

i.e., can select a block of code from source view or a snippet and copy and paste it into an editor without line numbers, odd formatting, html nonsense, etc.

cargo buildw

or cargo w or whatever, that will launch rustw using the cargo build build command plus other args, without needing any other configuration.

working demo mode

there is code there to run in demo mode, but running it on a server has problems:

  • URL redirect - we assume we are running at the root of the domain. Maybe that is not so bad and I just need to open a port. Maybe Apache config stuff?
  • slow; maybe we can skip downloading fonts and coalesce the JS etc., or whatever webdevs do these days
  • some errors downloading fonts - maybe just bad server setup or maybe cross domain whatevers?

display single error

and give it a unique URL. This enables a mode where the compiler emits error summaries to the console, with full info accessible in the browser via a link.

cc @nikomatsakis

config file

set build commands, default options, etc.

incremental errors

push errors as we get them. Also, progress indication (needs help from rustc).

rustdoc on hover

in code view, and maybe, snippets

Probably for fields, methods, types

'further reading' links

The compiler can pass some 'further reading' links to rustw, for example links to rustdoc or the book, or even a blog post. These can be displayed inline some how, rather than needing to be in an error code page or something.

type on hover

in code view, and maybe, snippets

for variables and fields

edit in client

for source code, open using some web-based editor in a new tab

view errors by code, rather than as a list

Rather than showing a list of errors, show a big code snippet with errors and notes inline, somewhat like an IDE would. This would be nice for errors like borrow check errors, where there are lots of related notes.

edit links

to open a file from the server (also, perhaps in the client via Atom or something?)

file caching

invalidated by build (or restart), we should cache files read from disk and processed lines of source code.

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.