Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WIP: feat(doc): Add a doc for beginners#474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
tempdragon wants to merge1 commit intorust-lang:master
base:master
Choose a base branch
Loading
fromtempdragon:beginner-doc

Conversation

tempdragon
Copy link
Contributor

  1. Info on How to Enble Enablerust-analyzer Support
  2. Info on How to Compile External Project withcg_gcc

1. Info on How to Enble Enable `rust-analyzer` Support2. Info on How to Compile External Project with `cg_gcc`
@tempdragon
Copy link
ContributorAuthor

Maybe it is possible to map thedoc directory to the wiki(and its corresponding repo) and allow workflow to automatically update it.
It should also be possible to use the wiki as asubmodule but potential misinformation or versions that are not carefully reviewed may cause problems

@tempdragontempdragon changed the titlefeat(doc): Add a doc for beginnersWIP: feat(doc): Add a doc for beginnersMar 17, 2024
1. Run the program with (in the root dir of `rustc_codegen_gcc` )(where `--manifest-path` is the path to the `Cargo.toml` of the project to run `cargo` against):

```shell
./y.sh cargo --manifest-path="..."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

No need for the indent.



```shell
alias cargcc="/path/to/rustc_codegen_gcc/y.sh cargo"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

No need for the indent.

./y.sh cargo --manifest-path="..."
```

or you may as well add this alias in your `.bash_aliases`:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'd drop this whole part. I never used.bash_aliases, only.bashrc for example. Having something so specific seems a bit too much imo.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Since I find it very useful to have an alias, I'd keep this part.
I didn't know about.bash_aliases either: I'll let the author rename that to.bashrc if they find that appropriate.

2. Install rust-src with rustup: `rustup component add rust-src`.
NOTE: Make sure you've switched to the corresponding toolchain as is used by cg_gcc
3. Set the lsp option `rust-analyzer.rustc.source = "discover"` (you can also set it to an explicit path), depending on your editor.
1. Neovim(nvim-lspconfig):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please drop this part, there are a lot of IDEs, adding docs for some of them is not useful.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I wrote this part forthis comment.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

In my point of view, it may be trivial for us that these steps are necessary, but probably harder for others to figure it out. Adding this may potentially add to contributors(since we only have no more than 100 developers).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm OK with keeping this part since it's useful and people can propably understand what they need to do for their own IDE from these instructions.

Copy link
Contributor

@antoyoantoyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Sorry for the long delay in reviewing. I forgot about this PR.
(Feel free to ping me what that happens.)

./y.sh cargo --manifest-path="..."
```

or you may as well add this alias in your `.bash_aliases`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Since I find it very useful to have an alias, I'd keep this part.
I didn't know about.bash_aliases either: I'll let the author rename that to.bashrc if they find that appropriate.

2. Install rust-src with rustup: `rustup component add rust-src`.
NOTE: Make sure you've switched to the corresponding toolchain as is used by cg_gcc
3. Set the lsp option `rust-analyzer.rustc.source = "discover"` (you can also set it to an explicit path), depending on your editor.
1. Neovim(nvim-lspconfig):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm OK with keeping this part since it's useful and people can propably understand what they need to do for their own IDE from these instructions.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@antoyoantoyoantoyo left review comments

@GuillaumeGomezGuillaumeGomezGuillaumeGomez left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@tempdragon@antoyo@GuillaumeGomez

[8]ページ先頭

©2009-2025 Movatter.jp