Skip to content

Commit

Permalink
move rust
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Aug 27, 2024
1 parent ca4916d commit b9ee2a2
Show file tree
Hide file tree
Showing 74 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[workspace]
members = ["src/compiler/rust/canister", "src/compiler/rust/open_value_sharing"]
members = ["src/build/rust/canister", "src/build/rust/open_value_sharing"]
Binary file modified canister_templates/experimental.wasm
Binary file not shown.
Binary file modified canister_templates/stable.wasm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function prepareRustStagingArea(
}

await copy(
`${AZLE_PACKAGE_PATH}/src/compiler/rust/canister`,
`${AZLE_PACKAGE_PATH}/src/build/rust/canister`,
`${canisterPath}/canister`
);

Expand All @@ -33,7 +33,7 @@ export async function prepareRustStagingArea(
}

await copy(
`${AZLE_PACKAGE_PATH}/src/compiler/rust/open_value_sharing`,
`${AZLE_PACKAGE_PATH}/src/build/rust/open_value_sharing`,
`${canisterPath}/open_value_sharing`
);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// TODO the plan is to integrate rquickjs for stable
// TODO and at that time create two crates
// TODO we should place each crate at src/build/stable/commands/compile/rust
// TODO and src/build/experimental/commands/compile/rust respectively

use std::cell::RefCell;

#[allow(unused)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function prepareRustStagingArea(
}

await copy(
`${AZLE_PACKAGE_PATH}/src/compiler/rust/canister`,
`${AZLE_PACKAGE_PATH}/src/build/rust/canister`,
`${canisterPath}/canister`
);

Expand All @@ -33,7 +33,7 @@ export async function prepareRustStagingArea(
}

await copy(
`${AZLE_PACKAGE_PATH}/src/compiler/rust/open_value_sharing`,
`${AZLE_PACKAGE_PATH}/src/build/rust/open_value_sharing`,
`${canisterPath}/open_value_sharing`
);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { generateIdentity, getCanisterId } from 'azle/dfx';
import { createActor } from 'azle/src/compiler/file_uploader/uploader_actor';
import { createActor } from 'azle/src/build/experimental/commands/upload_assets/file_uploader/uploader_actor';
import { expect, it, please, Test } from 'azle/test';
import { v4 } from 'uuid';

Expand Down
4 changes: 2 additions & 2 deletions tests/end_to_end/http_server/large_files/test/tests.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { afterAll, beforeAll, describe } from '@jest/globals';
import { getCanisterId } from 'azle/dfx';
import { hashFile } from 'azle/scripts/hash_file';
import { createActor } from 'azle/src/compiler/file_uploader/uploader_actor';
import { createActor } from 'azle/src/build/experimental/commands/upload_assets/file_uploader/uploader_actor';
import { expect, it, please, Test } from 'azle/test';
import { execSync } from 'child_process';
import { readdir, rm } from 'fs/promises';
import { join } from 'path';

import { Unit } from '../../../../../scripts/file_generator';
import { AZLE_UPLOADER_IDENTITY_NAME } from '../../../../../src/compiler/uploader_identity';
import { AZLE_UPLOADER_IDENTITY_NAME } from '../../../../../src/build/experimental/commands/upload_assets/uploader_identity';
import { getAuthorizationTests } from './authorization_tests';
import { generateFiles, getDfxConfigFileTests } from './auto_tests';
import { generateTestFileOfSize } from './generate_test_files';
Expand Down

0 comments on commit b9ee2a2

Please sign in to comment.