-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated for rustfmt and to add MSVC helpers.
- Loading branch information
Showing
8 changed files
with
191 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
Cargo.lock | ||
target | ||
*.sublime-workspace | ||
*.sln | ||
*/.vs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
authors = ["Fraser Hutchison <[email protected]>"] | ||
description = "An interactive CLI tool to add a remote fork to a local Git repository." | ||
license = "GPL-3.0" | ||
license = "MIT/Apache-2.0" | ||
name = "add-remote" | ||
readme = "README.md" | ||
version = "0.8.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
Project("{911E67C6-3D85-4FCE-B560-20A9C3E3FF48}") = "add_remote", "Add-Remote\target\stable\debug\add_remote.exe", "{00000000-0000-0000-0000-000000000000}" | ||
ProjectSection(DebuggerProjectSystem) = preProject | ||
Executable = Add-Remote\target\stable\debug\add_remote.exe | ||
Arguments = | ||
StartingDirectory = Add-Remote\target\stable\debug | ||
EndProjectSection | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Natvis", "Natvis", "{00000000-0000-0000-0000-000000000000}" | ||
ProjectSection(SolutionItems) = preProject | ||
liballoc.natvis = liballoc.natvis | ||
libcollections.natvis = libcollections.natvis | ||
libcore.natvis = libcore.natvis | ||
EndProjectSection | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{00000000-0000-0000-0000-000000000000}" | ||
ProjectSection(SolutionItems) = preProject | ||
..\src\main.rs = ..\src\main.rs | ||
EndProjectSection | ||
EndProject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> | ||
<Type Name="alloc::vec::Vec<*>"> | ||
<DisplayString>{{ size={len} }}</DisplayString> | ||
<Expand> | ||
<Item Name="[size]" ExcludeView="simple">len</Item> | ||
<Item Name="[capacity]" ExcludeView="simple">buf.cap</Item> | ||
<ArrayItems> | ||
<Size>len</Size> | ||
<ValuePointer>buf.ptr.pointer.__0</ValuePointer> | ||
</ArrayItems> | ||
</Expand> | ||
</Type> | ||
<Type Name="alloc::vec_deque::VecDeque<*>"> | ||
<DisplayString>{{ size={tail <= head ? head - tail : buf.cap - tail + head} }}</DisplayString> | ||
<Expand> | ||
<Item Name="[size]" ExcludeView="simple">tail <= head ? head - tail : buf.cap - tail + head</Item> | ||
<Item Name="[capacity]" ExcludeView="simple">buf.cap</Item> | ||
<CustomListItems> | ||
<Variable Name="i" InitialValue="tail" /> | ||
<Size>tail <= head ? head - tail : buf.cap - tail + head</Size> | ||
<Loop> | ||
<If Condition="i == head"> | ||
<Break/> | ||
</If> | ||
<Item>buf.ptr.pointer.__0 + i</Item> | ||
<Exec>i = (i + 1 == buf.cap ? 0 : i + 1)</Exec> | ||
</Loop> | ||
</CustomListItems> | ||
</Expand> | ||
</Type> | ||
<Type Name="alloc::linked_list::LinkedList<*>"> | ||
<DisplayString>{{ size={len} }}</DisplayString> | ||
<Expand> | ||
<LinkedListItems> | ||
<Size>len</Size> | ||
<HeadPointer>*(alloc::linked_list::Node<$T1> **)&head</HeadPointer> | ||
<NextPointer>*(alloc::linked_list::Node<$T1> **)&next</NextPointer> | ||
<ValueNode>element</ValueNode> | ||
</LinkedListItems> | ||
</Expand> | ||
</Type> | ||
<Type Name="alloc::string::String"> | ||
<DisplayString>{*(char**)this,[vec.len]}</DisplayString> | ||
<StringView>*(char**)this,[vec.len]</StringView> | ||
<Expand> | ||
<Item Name="[size]" ExcludeView="simple">vec.len</Item> | ||
<Item Name="[capacity]" ExcludeView="simple">vec.buf.cap</Item> | ||
<ArrayItems> | ||
<Size>vec.len</Size> | ||
<ValuePointer>*(char**)this</ValuePointer> | ||
</ArrayItems> | ||
</Expand> | ||
</Type> | ||
</AutoVisualizer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> | ||
<Type Name="collections::vec::Vec<*>"> | ||
<DisplayString>{{ size={len} }}</DisplayString> | ||
<Expand> | ||
<Item Name="[size]" ExcludeView="simple">len</Item> | ||
<Item Name="[capacity]" ExcludeView="simple">buf.cap</Item> | ||
<ArrayItems> | ||
<Size>len</Size> | ||
<ValuePointer>buf.ptr.pointer.__0</ValuePointer> | ||
</ArrayItems> | ||
</Expand> | ||
</Type> | ||
<Type Name="collections::vec_deque::VecDeque<*>"> | ||
<DisplayString>{{ size={tail <= head ? head - tail : buf.cap - tail + head} }}</DisplayString> | ||
<Expand> | ||
<Item Name="[size]" ExcludeView="simple">tail <= head ? head - tail : buf.cap - tail + head</Item> | ||
<Item Name="[capacity]" ExcludeView="simple">buf.cap</Item> | ||
<CustomListItems> | ||
<Variable Name="i" InitialValue="tail" /> | ||
<Size>tail <= head ? head - tail : buf.cap - tail + head</Size> | ||
<Loop> | ||
<If Condition="i == head"> | ||
<Break/> | ||
</If> | ||
<Item>buf.ptr.pointer.__0 + i</Item> | ||
<Exec>i = (i + 1 == buf.cap ? 0 : i + 1)</Exec> | ||
</Loop> | ||
</CustomListItems> | ||
</Expand> | ||
</Type> | ||
<Type Name="collections::linked_list::LinkedList<*>"> | ||
<DisplayString>{{ size={len} }}</DisplayString> | ||
<Expand> | ||
<LinkedListItems> | ||
<Size>len</Size> | ||
<HeadPointer>*(collections::linked_list::Node<$T1> **)&head</HeadPointer> | ||
<NextPointer>*(collections::linked_list::Node<$T1> **)&next</NextPointer> | ||
<ValueNode>element</ValueNode> | ||
</LinkedListItems> | ||
</Expand> | ||
</Type> | ||
<Type Name="collections::string::String"> | ||
<DisplayString>{*(char**)this,[vec.len]}</DisplayString> | ||
<StringView>*(char**)this,[vec.len]</StringView> | ||
<Expand> | ||
<Item Name="[size]" ExcludeView="simple">vec.len</Item> | ||
<Item Name="[capacity]" ExcludeView="simple">vec.buf.cap</Item> | ||
<ArrayItems> | ||
<Size>vec.len</Size> | ||
<ValuePointer>*(char**)this</ValuePointer> | ||
</ArrayItems> | ||
</Expand> | ||
</Type> | ||
</AutoVisualizer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> | ||
<Type Name="core::ptr::Unique<*>"> | ||
<DisplayString>{{ Unique {*pointer.__0} }}</DisplayString> | ||
<Expand> | ||
<Item Name="[ptr]">pointer.__0</Item> | ||
</Expand> | ||
</Type> | ||
<Type Name="core::ptr::Shared<*>"> | ||
<DisplayString>{{ Shared {*pointer.__0} }}</DisplayString> | ||
<Expand> | ||
<Item Name="[ptr]">pointer.__0</Item> | ||
</Expand> | ||
</Type> | ||
<Type Name="core::option::Option<*>"> | ||
<DisplayString Condition="RUST$ENUM$DISR == 0x0">{{ None }}</DisplayString> | ||
<DisplayString Condition="RUST$ENUM$DISR == 0x1">{{ Some {__0} }}</DisplayString> | ||
<Expand> | ||
<Item Name="[size]" ExcludeView="simple">(ULONG)(RUST$ENUM$DISR != 0)</Item> | ||
<Item Name="[value]" ExcludeView="simple">__0</Item> | ||
<ArrayItems> | ||
<Size>(ULONG)(RUST$ENUM$DISR != 0)</Size> | ||
<ValuePointer>&__0</ValuePointer> | ||
</ArrayItems> | ||
</Expand> | ||
</Type> | ||
<Type Name="core::option::Option<*>" Priority="MediumLow"> | ||
<DisplayString Condition="*(PVOID *)this == nullptr">{{ None }}</DisplayString> | ||
<DisplayString>{{ Some {($T1 *)this} }}</DisplayString> | ||
<Expand> | ||
<Item Name="[size]" ExcludeView="simple">(ULONG)(*(PVOID *)this != nullptr)</Item> | ||
<Item Name="[value]" ExcludeView="simple" Condition="*(PVOID *)this != nullptr">($T1 *)this</Item> | ||
<ArrayItems> | ||
<Size>(ULONG)(*(PVOID *)this != nullptr)</Size> | ||
<ValuePointer>($T1 *)this</ValuePointer> | ||
</ArrayItems> | ||
</Expand> | ||
</Type> | ||
</AutoVisualizer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters