File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -194,32 +194,6 @@ export async function activeToolchain(): Promise<string> {
194
194
} ) ;
195
195
}
196
196
197
- export async function rustVersion ( ) : Promise < string > {
198
- const pathToRustup = await rustupPath ( ) ;
199
- return await new Promise ( ( resolve , reject ) => {
200
- const execution = cp . spawn ( pathToRustup , [ 'show' , 'active-toolchain' ] , {
201
- stdio : [ 'ignore' , 'pipe' , 'pipe' ] ,
202
- cwd : os . homedir ( )
203
- } ) ;
204
- const rl = readline . createInterface ( { input : execution . stdout } ) ;
205
-
206
- let currToolchain : string | undefined = undefined ;
207
- rl . on ( 'line' , line => {
208
- const match = line . match ( TOOLCHAIN_PATTERN ) ;
209
- if ( match ) {
210
- currToolchain = match [ 1 ] ;
211
- }
212
- } ) ;
213
- execution . on ( 'exit' , ( exitCode , _ ) => {
214
- if ( exitCode === 1 && currToolchain )
215
- resolve ( currToolchain ) ;
216
- else
217
- reject ( new Error ( `exit code: ${ exitCode } .` ) ) ;
218
- } ) ;
219
-
220
- } ) ;
221
- }
222
-
223
197
/** Mirrors `project_model::sysroot::discover_sysroot_dir()` implementation*/
224
198
export async function getSysroot ( dir : string ) : Promise < string > {
225
199
const rustcPath = await getPathForExecutable ( "rustc" ) ;
You can’t perform that action at this time.
0 commit comments