Skip to content

Commit 2c2ad19

Browse files
authored
chore: Switched back to the stable toolchain (#124)
1 parent 4abe307 commit 2c2ad19

43 files changed

Lines changed: 83 additions & 82 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Checkout repository code
1313
uses: actions/checkout@v6
1414
- name: Install Rust toolchain
15-
uses: dtolnay/rust-toolchain@nightly
15+
uses: dtolnay/rust-toolchain@stable
1616
with:
1717
components: clippy
1818
- name: Build
@@ -27,7 +27,7 @@ jobs:
2727
- name: Checkout repository code
2828
uses: actions/checkout@v6
2929
- name: Install Rust toolchain
30-
uses: dtolnay/rust-toolchain@nightly
30+
uses: dtolnay/rust-toolchain@stable
3131
- name: Build
3232
run: cargo build --release
3333
- name: Test
@@ -42,7 +42,7 @@ jobs:
4242
- name: Checkout repository code
4343
uses: actions/checkout@v6
4444
- name: Install Rust toolchain
45-
uses: dtolnay/rust-toolchain@nightly
45+
uses: dtolnay/rust-toolchain@stable
4646
with:
4747
components: clippy
4848
- name: Build
@@ -55,7 +55,7 @@ jobs:
5555
- name: Checkout repository code
5656
uses: actions/checkout@v6
5757
- name: Install Rust toolchain
58-
uses: dtolnay/rust-toolchain@nightly
58+
uses: dtolnay/rust-toolchain@stable
5959
- name: Build
6060
run: cargo build --release
6161
- name: Test

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- name: Checkout repository code
1010
uses: actions/checkout@v6
1111
- name: Install Rust toolchain
12-
uses: dtolnay/rust-toolchain@nightly
12+
uses: dtolnay/rust-toolchain@stable
1313
- name: Build
1414
run: cargo build
1515
- name: Test
@@ -20,7 +20,7 @@ jobs:
2020
- name: Checkout repository code
2121
uses: actions/checkout@v6
2222
- name: Install Rust toolchain
23-
uses: dtolnay/rust-toolchain@nightly
23+
uses: dtolnay/rust-toolchain@stable
2424
- name: Build
2525
run: cargo build --release
2626
- name: Test
@@ -35,7 +35,7 @@ jobs:
3535
- name: Checkout repository code
3636
uses: actions/checkout@v6
3737
- name: Install Rust toolchain
38-
uses: dtolnay/rust-toolchain@nightly
38+
uses: dtolnay/rust-toolchain@stable
3939
- name: Build
4040
run: cargo build
4141
- name: Test
@@ -46,7 +46,7 @@ jobs:
4646
- name: Checkout repository code
4747
uses: actions/checkout@v6
4848
- name: Install Rust toolchain
49-
uses: dtolnay/rust-toolchain@nightly
49+
uses: dtolnay/rust-toolchain@stable
5050
- name: Build
5151
run: cargo build --release
5252
- name: Test

.gitpod.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,3 @@ DIM A AS INTEGER
117117
A = 42 ' this is an integer because it's explicitly defined as such
118118
A$ = "hello" ' duplicate definition error here
119119
```
120-
121-
## Development
122-
123-
The project uses the nightly toolchain currently,
124-
to take advantage of `rustfmt` features that are onyl available there.
125-
126-
Additionally, building on a Mac might cause some linker errors on the current
127-
stable toolchain, which aren't occurring on the nightly.
128-
129-
Tip: run tests continuously with `make watch` or
130-
`nodemon -e rs -x "cargo test"`.

rustfmt.toml

Lines changed: 0 additions & 4 deletions
This file was deleted.

rusty_basic/src/instruction_generator/loops.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use rusty_common::*;
22
use rusty_parser::{
3-
ConditionalBlock, DoLoop, DoLoopConditionKind, DoLoopConditionPosition, Expression, ExpressionPos, ForLoop, HasExpressionType, Statements
3+
ConditionalBlock, DoLoop, DoLoopConditionKind, DoLoopConditionPosition, Expression,
4+
ExpressionPos, ForLoop, HasExpressionType, Statements,
45
};
56
use rusty_variant::Variant;
67

rusty_basic/src/instruction_generator/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ use rusty_common::{AtPos, CaseInsensitiveString, Position, Positioned};
22
use rusty_linter::core::{LinterContext, ScopeName};
33
use rusty_linter::names::Names;
44
use rusty_parser::{
5-
Assignment, BareName, BuiltInFunction, BuiltInSub, DimVar, Expression, ExpressionType, FileHandle, FunctionImplementation, GlobalStatement, HasExpressionType, Name, Parameter, Program, Statement, Statements, SubImplementation, TypeQualifier, UserDefinedTypes
5+
Assignment, BareName, BuiltInFunction, BuiltInSub, DimVar, Expression, ExpressionType,
6+
FileHandle, FunctionImplementation, GlobalStatement, HasExpressionType, Name, Parameter,
7+
Program, Statement, Statements, SubImplementation, TypeQualifier, UserDefinedTypes,
68
};
79
use rusty_variant::Variant;
810

911
use crate::RuntimeError;
1012
use crate::instruction_generator::label_resolver::LabelResolver;
1113
use crate::instruction_generator::subprogram_info::{
12-
SubprogramInfoCollector, SubprogramInfoRepository
14+
SubprogramInfoCollector, SubprogramInfoRepository,
1315
};
1416

1517
pub fn unwrap_linter_context(linter_context: LinterContext) -> (Names, UserDefinedTypes) {

rusty_basic/src/instruction_generator/test_utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ use rusty_linter::core::lint;
33
use rusty_parser::{UserDefinedTypes, parse};
44

55
use crate::instruction_generator::{
6-
Instruction, InstructionGeneratorResult, InstructionPos, generate_instructions, unwrap_linter_context
6+
Instruction, InstructionGeneratorResult, InstructionPos, generate_instructions,
7+
unwrap_linter_context,
78
};
89

910
pub fn generate_instructions_str_with_types(

rusty_basic/src/interpreter/keyboard.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ mod windows_impl {
2727
extern crate winapi;
2828

2929
use winapi::um::winuser::{
30-
GetKeyboardState, INPUT, INPUT_KEYBOARD, KEYEVENTF_KEYUP, SendInput, VK_CAPITAL, VK_NUMLOCK, VK_SCROLL
30+
GetKeyboardState, INPUT, INPUT_KEYBOARD, KEYEVENTF_KEYUP, SendInput, VK_CAPITAL,
31+
VK_NUMLOCK, VK_SCROLL,
3132
};
3233

3334
use crate::RuntimeError;

rusty_basic/src/interpreter/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::interpreter::context::*;
1414
use crate::interpreter::data_segment::DataSegment;
1515
use crate::interpreter::default_stdlib::DefaultStdlib;
1616
use crate::interpreter::handlers::allocation::{
17-
allocate_array, allocate_built_in, allocate_fixed_length_string, allocate_user_defined_type
17+
allocate_array, allocate_built_in, allocate_fixed_length_string, allocate_user_defined_type,
1818
};
1919
use crate::interpreter::interpreter_trait::InterpreterTrait;
2020
use crate::interpreter::io::{FileManager, Input, Printer};

0 commit comments

Comments
 (0)