Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree experiment #7

Closed
wants to merge 190 commits into from
Closed

Tree experiment #7

wants to merge 190 commits into from

Conversation

anderejd
Copy link

@anderejd anderejd commented Jun 20, 2018

Solves: #3
Solves: #2

This is not ready to merge, I took a whole lot of liberty with this PR and it is missing the commits from the last 24 hours or so.

The history is a bit unexpected since I merged in cargo-tree as boiler plate, most of it is still there. That seemed like a reasonable approach to me since cargo-tree already had the recursive dependency walking in place but was not packaged up as a library and needed some modifications.

Does this PR seem like a good direction at all for cargo-osha?
What should change?
What is missing?

anderejd and others added 7 commits June 20, 2018 21:22
(cherry-picking commit 68495c2)
An expression like `str::from_utf8_unchecked(bytes)` should be counted
as one unsafe expression. That is, just `str::from_utf8_unchecked` and
`bytes` by themselves are not expressions that can meaningfully be
considered unsafe. A way to see this is that there would never be a
reason to write:

    unsafe { f }(unsafe { x })
@icefoxen
Copy link
Owner

Holy crap.

Are you sure you don't want to just make your own crate? 😁

@anderejd
Copy link
Author

anderejd commented Jun 20, 2018

I just pushed up cherry picking from master, pretty sure it's in sync again.

Are you sure you don't want to just make your own crate? 😁

Maybe? If you don't think this is the direction for cargo-osha I will make a new repos and crate. I don't feel the need to have it under my github user though, it's like max 10% that's my code in this PR, the rest is the original cargo-osha on top of cargo-tree. :)

@anderejd anderejd changed the title [NOT READY FOR MERGE] Tree experiment Tree experiment Jun 20, 2018
@anderejd
Copy link
Author

Conflicts fixed. Feel free to review, merge or just close :)

@anderejd
Copy link
Author

I did what you suggested and created a new project: https://crates.io/crates/cargo-geiger

If you want to merge the projects later that would be totally fine with me. Thanks for the nice and simple code btw! 👍

Closing.

@anderejd anderejd closed this Jun 20, 2018
@anderejd anderejd deleted the tree-experiment branch June 20, 2018 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants