Skip to content

Commit

Permalink
Move all modules to gwr/ namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendoCosta committed Aug 13, 2024
1 parent ac050e5 commit b7229e0
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/section.gleam → src/gwr/section.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import gleam/int
import gleam/option.{type Option, Some, None}
import gleam/result

import util
import types/limits.{type Limits}
import types/name
import types/vector
import gwr/util
import gwr/types/limits.{type Limits}
import gwr/types/name
import gwr/types/vector

// Each section consists of
// - a one-byte section id,
Expand Down
4 changes: 2 additions & 2 deletions src/types/limits.gleam → src/gwr/types/limits.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import gleam/list
import gleam/option.{type Option, Some, None}
import gleam/result

import util
import types/vector as vector
import gwr/util
import gwr/types/vector as vector

// https://webassembly.github.io/spec/core/binary/types.html#limits
pub type Limits
Expand Down
2 changes: 1 addition & 1 deletion src/types/name.gleam → src/gwr/types/name.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import gleam/bit_array
import gleam/result

import types/vector as vector
import gwr/types/vector as vector

// Names are encoded as a vector of bytes containing the Unicode (Section 3.9) UTF-8 encoding of the name’s character sequence.
// https://webassembly.github.io/spec/core/binary/values.html#binary-name
Expand Down
2 changes: 1 addition & 1 deletion src/types/vector.gleam → src/gwr/types/vector.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import gleam/bool
import gleam/int
import gleam/result

import util
import gwr/util

// Vectors are encoded with their u32 length followed by the encoding of their element sequence.
// https://webassembly.github.io/spec/core/binary/conventions.html#binary-vec
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/module_test.gleam → test/gwr/module_test.gleam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gleeunit
import gleeunit/should

import module
import gwr/module

pub fn main()
{
Expand Down
4 changes: 2 additions & 2 deletions test/section_test.gleam → test/gwr/section_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import gleeunit/should
import gleam/bytes_builder
import gleam/option.{Some, None}

import section
import types/limits.{Limits}
import gwr/section
import gwr/types/limits.{Limits}

pub fn main()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import gleeunit
import gleeunit/should
import gleam/option.{Some, None}

import types/limits.{Limits}
import types/vector
import gwr/types/limits.{Limits}
import gwr/types/vector

pub fn main()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gleeunit
import gleeunit/should

import types/vector as vector
import gwr/types/vector as vector

pub fn main()
{
Expand Down

0 comments on commit b7229e0

Please sign in to comment.