Skip to content

Commit f654981

Browse files
committed
Initial import
0 parents  commit f654981

37 files changed

+15264
-0
lines changed

‎.github/workflows/build.yml‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
build:
13+
runs-on: windows-2022
14+
strategy:
15+
matrix:
16+
toolchain:
17+
- nightly
18+
arch:
19+
- x64
20+
- arm64
21+
steps:
22+
# The Windows runners have autocrlf enabled by default.
23+
- name: Disable git autocrlf
24+
run: git config --global core.autocrlf false
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Install nightly
28+
run: |
29+
rustup toolchain install --no-self-update --profile minimal --component rust-src -- nightly
30+
rustup default nightly
31+
rustup target add ${{ matrix.arch == 'arm64' && 'aarch64-pc-windows-msvc' || 'x86_64-pc-windows-msvc' }}
32+
- name: Test
33+
if: matrix.arch == 'x64'
34+
run: cargo test
35+
- name: Build
36+
run: |
37+
if ("${{ matrix.arch }}" -eq "arm64") {
38+
.\tools\build_release_windows.bat --target aarch64-pc-windows-msvc
39+
} else {
40+
.\tools\build_release_windows.bat
41+
}
42+
- name: Upload
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: Windows ${{ matrix.arch }}
46+
path: |
47+
${{ github.workspace }}/target/${{ matrix.arch == 'arm64' && 'aarch64-pc-windows-msvc/release' || 'release' }}/edit.exe
48+
${{ github.workspace }}/target/${{ matrix.arch == 'arm64' && 'aarch64-pc-windows-msvc/release' || 'release' }}/edit.pdb

‎.gitignore‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.idea
2+
.vs
3+
*.user
4+
bin
5+
CMakeSettings.json
6+
obj
7+
out
8+
target

‎.vscode/launch.json‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Debug",
6+
"preLaunchTask": "rust: cargo build",
7+
"type": "cppvsdbg",
8+
"request": "launch",
9+
"console": "externalTerminal",
10+
"program": "${workspaceFolder}/target/debug/edit",
11+
"args": [
12+
"${workspaceFolder}/README.md"
13+
],
14+
"cwd": "${workspaceFolder}",
15+
}
16+
]
17+
}

‎.vscode/tasks.json‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "rust: cargo build",
6+
"type": "process",
7+
"command": "cargo",
8+
"args": [
9+
"build",
10+
"--package",
11+
"edit",
12+
"--features",
13+
"debug-latency"
14+
],
15+
"group": {
16+
"kind": "build",
17+
"isDefault": true
18+
},
19+
"problemMatcher": [
20+
"$rustc"
21+
]
22+
}
23+
]
24+
}

‎Cargo.lock‎

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[package]
2+
name = "edit"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[features]
7+
debug-layout = []
8+
debug-latency = []
9+
10+
[profile.release]
11+
codegen-units = 1
12+
debug = "full"
13+
lto = true
14+
panic = "abort"
15+
debug-assertions = true # Temporary while I test this
16+
17+
[dependencies]
18+
19+
[target.'cfg(unix)'.dependencies]
20+
libc = "0.2"
21+
22+
[target.'cfg(windows)'.dependencies.windows-sys]
23+
version = "0.59"
24+
features = [
25+
"Win32_Globalization",
26+
"Win32_Security",
27+
"Win32_Storage_FileSystem",
28+
"Win32_System_Console",
29+
"Win32_System_Diagnostics_Debug",
30+
"Win32_System_IO",
31+
"Win32_System_LibraryLoader",
32+
"Win32_System_Memory",
33+
"Win32_System_Threading",
34+
]

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Microsoft Corporation. All rights reserved.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# MS-DOS Editor Redux
2+
3+
TBA

‎assets/Microsoft_logo_(1980).svg‎

Lines changed: 26 additions & 0 deletions
Loading

‎assets/microsoft.png‎

5.64 KB
Loading

0 commit comments

Comments
 (0)