rust 1.65 updates for wasm target

This commit is contained in:
Anton-4 2023-01-17 20:11:38 +01:00
parent 73f46b6613
commit 4b929cfdb3
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
3 changed files with 14 additions and 10 deletions

View file

@ -37,9 +37,7 @@ use roc_mono::ir::{
use roc_mono::layout::{
GlobalLayoutInterner, LambdaName, Layout, LayoutCache, LayoutProblem, Niche, STLayoutInterner,
};
use roc_packaging::cache::{self, RocCacheDir};
#[cfg(not(target_family = "wasm"))]
use roc_packaging::https::PackageMetadata;
use roc_packaging::cache::RocCacheDir;
use roc_parse::ast::{
self, CommentOrNewline, Defs, ExtractSpaces, Spaced, StrLiteral, TypeAnnotation,
};
@ -67,6 +65,11 @@ use std::path::{Path, PathBuf};
use std::str::from_utf8_unchecked;
use std::sync::Arc;
use std::{env, fs};
#[cfg(not(target_family = "wasm"))]
use {
roc_packaging::cache::{self},
roc_packaging::https::PackageMetadata,
};
pub use crate::work::Phase;
use crate::work::{DepCycle, Dependencies};