Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a deprecation on Cstruct.len (use Cstruct.length instead) #284

Merged
merged 1 commit into from
Nov 25, 2020

Conversation

dinosaure
Copy link
Member

According to #282 to be ready (and to not forget) for a possible next release.

@hannesm
Copy link
Member

hannesm commented Nov 25, 2020

is the predicate deprecated or ocaml.deprecated? i.e. does the above result in a deprecation warning? (I so far used @@ocaml.deprecated).

@dinosaure
Copy link
Member Author

According to the official documentation, both can be used, but I can prepend with ocaml if you want.

@hannesm
Copy link
Member

hannesm commented Nov 25, 2020

@dinosaure thanks, I tested this locally, and it works great. I enabled OCaml-CI on this repository. Good to merge once CI (should we remove travis?) are finished.

@dinosaure
Copy link
Member Author

The CI fails on the linter about ppx/dune which is not the part of this PR but the linter was running on this file in #285. To avoid conflict, I will not push a pass of ocamlformat on this file.

About Travis CI, I prefer to be conservative on CIs or we should open an issue to discuss about that.

@hannesm
Copy link
Member

hannesm commented Nov 25, 2020

travis

I read this morning ocaml/ocaml-ci-scripts#353 -- and I don't see a good reason to use travis in this repository (given that github actions and ocaml-ci are doing a good job :)

The CI fails on the linter about ppx/dune which is not the part of this PR but the linter was running on this file in #285.

fine with me to fix that CI issue in a different PR :) good to merge this PR from my side.

@dinosaure dinosaure merged commit 86fa6c6 into master Nov 25, 2020
dinosaure added a commit to dinosaure/opam-repository that referenced this pull request Jun 25, 2021
…ct-lwt and cstruct-async (6.0.1)

CHANGES:

**breaking changes**
- `Cstruct.len` is deprecated, it will be deleted at the next
  release. You should use `Cstruct.length` instead.
  (@dinosaure, @hannesm, mirage/ocaml-cstruct#284)

- Remove color from ppx's binary to replicate diff of errors in
  any contexts (@dinosaure, @sternenseemann, mirage/ocaml-cstruct#285)
- Add `shiftv` (@talex5, @avsm, @dinosaure, mirage/ocaml-cstruct#287)
- Use `Bytes_val` if available (@hannesm, @avsm, @dinosaure, mirage/ocaml-cstruct#286)
kit-ty-kate pushed a commit to dinosaure/opam-repository that referenced this pull request Jul 27, 2021
…ct-lwt and cstruct-async (6.0.1)

CHANGES:

**breaking changes**
- `Cstruct.len` is deprecated, it will be deleted at the next
  release. You should use `Cstruct.length` instead.
  (@dinosaure, @hannesm, mirage/ocaml-cstruct#284)

- Remove color from ppx's binary to replicate diff of errors in
  any contexts (@dinosaure, @sternenseemann, mirage/ocaml-cstruct#285)
- Add `shiftv` (@talex5, @avsm, @dinosaure, mirage/ocaml-cstruct#287)
- Use `Bytes_val` if available (@hannesm, @avsm, @dinosaure, mirage/ocaml-cstruct#286)
kit-ty-kate pushed a commit to dinosaure/opam-repository that referenced this pull request Jul 27, 2021
…ct-lwt and cstruct-async (6.0.1)

CHANGES:

**breaking changes**
- `Cstruct.len` is deprecated, it will be deleted at the next
  release. You should use `Cstruct.length` instead.
  (@dinosaure, @hannesm, mirage/ocaml-cstruct#284)

- Remove color from ppx's binary to replicate diff of errors in
  any contexts (@dinosaure, @sternenseemann, mirage/ocaml-cstruct#285)
- Add `shiftv` (@talex5, @avsm, @dinosaure, mirage/ocaml-cstruct#287)
- Use `Bytes_val` if available (@hannesm, @avsm, @dinosaure, mirage/ocaml-cstruct#286)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants